Excel 2013 Formulas

I would like to calculate % change from last year in column I and need some help with the formula.

Here is my excel table

Excel.JPG
Here is my formula that i have in cell I6.
=(D6-H6)/D6

How can i make it that if cell D6 is blank then the default value in Column I cell I6 is 100%

All cell format types are set to "Accounting"
LVL 3
TroyIT Support AdministratorAsked:
Who is Participating?
 
Bill PrewCommented:
Is there a zero in D6, seems like there must be.  Keep in mind, the sheet can be set in options not to display cells that are zero, but show them as blank.  To cover both cases try:

=IF(OR(ISBLANK(D6),D6=0),1,(D6-H6)/D6)

Open in new window


»bp
0
 
Bill PrewCommented:
Try this:

=IF(ISBLANK(D6),1,(D6-H6)/D6)

Open in new window

(assuming you have that column formatted as a percentage and 1 is 100%.  If not change the 1 to 100)

»bp
0
 
TroyIT Support AdministratorAuthor Commented:
didnt work. This is what shows in the cell

#DIV/0!
0
 
FlysterCommented:
You can use IFERROR to handle a blank cell:

=IFERROR((D6-H6)/D6,"100%")

Flyster
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.