Nested IF formula with wildcard

AL0905

New Member
Joined
Apr 26, 2019
Messages
1
I am setting up a spreadsheet to collect monthly figures. Of these figures I want excel to automatically calculate a percentage using two figures. I have this formula just fine. I want to have the formula present for all future months so that when I input the figures it automatically calculates the percentage for me. However for future months I don't want to see the error message where there aren't any figures to calculate the percentage yet as it makes my spreadsheet look messy. I have figured to get around this to use an IFERROR and make errors 0 and hide all 0 values. For months were I have input figures and there are no figures I want that 0 value to be 100. Some background: the percentage I am calculating is % waste diverted from landfill. So on months where the value is 0 - technically 100% of waste has been diverted from landfill as no waste was produced. So now I'm thinking of using nested IF formulas. What I want is IF ERROR(yes = 0) (no = (D17/D16)*100) and then another IF when the first IF is yes =0, then if there is any figure in another cell (D13=waste to landfill) EVEN if that figure is zero i.e. Wildcard ? (yes =100) (no=0) as if there is no figure in D13 it means there are no figures from that month yet. This is what I have but it is very wrong =IFERROR((D17/16)*100,0),IF(COUNTIF(D13,"?"),100,0). I really hope this makes sense. Please help!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi, welcome to the forum!

Not sure entirely but it sounds like this might be what you want:

=IF(D13="",0,IF(D16=0,100,(D17/D16)*100))
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,183
Members
449,071
Latest member
cdnMech

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