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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
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
Bill PrewIT / Software Engineering ConsultantCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FlysterCommented:
You can use IFERROR to handle a blank cell:

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

Flyster
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.