Solved

Excel IF formula

Posted on 2015-02-24
3
78 Views
Last Modified: 2015-02-24
In Excel 2010, I am viewing a spreadsheet that contains an IF statement (below are the details)

Cell B4 contains Sales 2013
Cell B5 contains Sales 2014

In Cell B6 the formula contains =IF(B5="","",(B4-B5)B5)

I am not familiar with part of the formula that indicates:  B5="","",

Any feedback is greatly appreciated, Thanks.
0
Comment
Question by:fjkaykr11
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Rodney Endriga earned 500 total points
ID: 40629570
The first portion of the formula is validating the contents of the cell reference. In this example, the cell reference is B5.
It is checking to see if the cell is BLANK (no data/text in the cell).

The second portion of formula is applying a results to the cell where the formula resides (in this case, cell B6). In this example, the result would be BLANK ("") if cell B5 is BLANK.

The basic IF formula structure is:
     if(logical test, [value if true], [value if false])
0
 
LVL 3

Author Closing Comment

by:fjkaykr11
ID: 40629580
Rodney, thank you for the detailed explanation. I really appreciate your help!
0
 
LVL 5

Expert Comment

by:Rodney Endriga
ID: 40629689
No problem, fjkaykr11, glad I can help.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question