IF formula and % calculation returns #DIV/0! error

jayjay123

New Member
Joined
Jun 3, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hi Excel gurus,

Can you please help with this? I know there is something wrong with these formulas...
In the yellow cell, I have used this formula. (see below) I know I should be writing "No change" somewhere in the formula but is the IF formula the most appropriate one to use?

Yellow cell (P7)
=IF(O7>0,"Increase","Decrease")

How do I make this +100%
Green cell (Q9)
=O9/N9

I have a blanks within my data set (for example: Row 12). How should I incorporate it so that if there is a blank row, it with return a "blank" cell in P and Q?
Screen Shot 2023-03-10 at 12.17.21 am.png


Thank you!!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about
Excel Formula:
=IF(O7=0,"No change",IF(O7>0,"Increase","Decrease"))
 
Upvote 1
Solution
For the 2nd part try
Excel Formula:
=IF(AND(N2=0,O2<>0),1,IF(AND(N2="",O2=""),"",O2/N2))
 
Upvote 1
How about
Excel Formula:
=IF(O7=0,"No change",IF(O7>0,"Increase","Decrease"))
ooh thank you @Fluff!
would you know how to integrate the formula so that I can drag both formulas down (including row 12)? at the moment in the row 12 shows "Increase" (P12) and "100%" (Q12)
 
Upvote 0
If it shows "Increase" in P12 then O12 is not blank.
 
Upvote 0
Is there a formula in there?
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,635
Members
449,043
Latest member
farhansadik

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top