Greater Than

Trebby

Board Regular
Joined
Aug 7, 2014
Messages
64
Hi,

In Cell E8 I have the value "30"
In Cell F8 I have "Total Days"
In Cell G8 I have "=(IFERROR(IF(F8>20,"0",IF(F8<20,SUM(20-F8))),""))" So if less than 20 is continues to sum and if more than 20 it returns 0
In Cell H8 I have "=IF(G8>=0,10,IF(G8=0,SUM(E8-20)))" so if equal or more than "0" in cell G8 it returns 10 days, but if G8 is "0", it should sum E8 - 20 days.

I can get G8 to calculate fine and H8 is always returning "10".

Please can you advise?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try changing "0" to 0
=(IFERROR(IF(F8>20,"0",IF(F8<20,SUM(20-F8))),""))

Also, you are checking if G8>=0 then if G8=0 can't be both? Maybe, G8<>0 then G8=0
 
Last edited:
Upvote 0
Try changing "0" to 0
=(IFERROR(IF(F8>20,"0",IF(F8<20,SUM(20-F8))),""))

Thanks for the reply. Unfortunately still getting the same outcome. F8 has 22, G8 has 0 (as more than 20) and H8 has returned 10 (when should be 8).
 
Upvote 0
Your 1st formula prob should be, as you don't allow for if it is 20
=(IFERROR(IF(F8>=20,0,IF(F8<20,SUM(20-F8))),""))
2nd one prob
=IF(G8>0,10,IF(G8=0,SUM(E8-20)))
 
Upvote 0
Your 1st formula prob should be, as you don't allow for if it is 20
=(IFERROR(IF(F8>=20,0,IF(F8<20,SUM(20-F8))),""))
2nd one prob
=IF(G8>0,10,IF(G8=0,SUM(E8-20)))

I was able to do something with condition formatting (not ideal) but it worked. Thank you#
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,813
Members
449,469
Latest member
Kingwi11y

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