Ignore Blank Cells

djaldente

New Member
Joined
Mar 21, 2017
Messages
27
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Can someone help me with this formula please.. If any of the I cells (I18, I19, I20) are blank I need them not to be counted.

=(C13/(C13/I18+C13/I19+C13/I20)*K6*K18)+(C13/(C13/I18+C13/I19+C13/I20)*K6*K19)+(C13/(C13/I18+C13/I19+C13/I20)*K6*K20)

Cheers
hGbmqm
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi

I don't understand this formula.

First thing I don't understand is what C13 is doing

C13/(C13/I18+C13/I19+C13/I20)

makes no sense to me. If you divide numerator and denominator by C13 you get

1/(1/I18+1/I19+1/I20)

So what is C13 doing there?
 
Upvote 0
@djaldente, your main formula can be shortened quite a bit (maybe even further than I have in a couple minutes here). That said, the following should work for your purposes:

Code:
=C13/(C13/IF(I18>0,I18,1)+C13/IF(I19>0,I19,1)+C13/IF(I20>0,I20,1))*K6*(K18+K19+K20)
 
Upvote 0
Hey mate,

thanks for responding, sorry for not being clear enough.. the value of C13 is 2360 - so i have:
2360/(2360/13.25+2360/20.70+2360/66.25)*9.5*90
plus
2360/(2360/13.25+2360/20.70+2360/66.25)*9.5*95
plus
2360/(2360/13.25+2360/20.70+2360/66.25)*9.5*100

if one of the 3 figures/cells in brackets is blank i dont want it counted. at the moment i just get an error message.

Thanks again for your help mate

Charlie
 
Upvote 0
Your formula can for sure be shortened to this. As has already been mentioned the use of cell C13 is irrelevant because the division evaluates to 1 in the formula.

=1/(1/IF(I18>0,I18,1)+1/IF(I19>0,I19,1)+1/IF(I20>0,I20,1))*K6*(K18+K19+K20)
 
Upvote 0
Charlie, you've got two different people corresponding with you here. Did you try the formula I left for you above?

Hi Erik,

Yea mate its working thank you very much, the figures are a bit off though.. im just going through it now.

Thanks heaps mate
 
Upvote 0
Hi Erik,

Thanks for the help mate.. so in your formula "C13/IF(I18>0,I18,1)" returns the value in I18 if its not blank - i wish to divide C13 by this value..

Cheers
 
Upvote 0

Forum statistics

Threads
1,223,790
Messages
6,174,600
Members
452,574
Latest member
hang_and_bang

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