Getting #value error with nested if statements

Lotus User

New Member
Joined
Jan 3, 2018
Messages
17
The formula I am using is:

=IF(AND(C13>0,C25<C30),"MIN-OUT"),IF(AND(C18>0,C27<0),"MIN-OUT",IF(C27<=0,"MET","OUT"))

My formula is in cell C29 and I am getting the #VALUE ERROR. I've checked all the cell formatting and they are all set to number. Any suggestions?
Here is the data. Can't figure out how to do an actual screen shot post.

C13=38
C25=48.50
C3047.86
C18=0.00
C27=-8.50

Sun
Date 01/07
CensusALF38
Memory
RTF
Total38
Hours AllowedALF57.00
Memory0.00
RTF0.00
Adj for Min0.00
Total57.00
Effective Ratio 1.50
Actual HoursRegular48.50
Overtime
Agency
Total48.50
Over/Under -8.50
MET/OUT! #VALUE !
47.86

<tbody>
</tbody><colgroup><col><col><col></colgroup>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,

What is C250 in your formula?
 
Upvote 0
When I try your formula with the posted values the result of the formula is 'OUT'.

Have you checked that all the values in the relevant cells are actually numeric?
 
Upvote 0
=IF(AND(C13>0,C25<C30),"MIN-OUT"),IF(AND(C18>0,C27<0),"MIN-OUT",IF(C27<=0,"MET","OUT"))

This is actually my formula...not sure how I cut and paste it incorrectly....
 
Upvote 0
It's the forum software, treating < and > characters as html code tags.

Put spaces around < and > characters when posting formulas.
 
Upvote 0
=IF(AND(C13>0,C25<C30),"MIN-OUT"),IF(AND(C18>0,C27<0),"MIN-OUT",IF(C27<=0,"MET","OUT"))

...it comes down to the last segment of which C27 is less than zero so the answer should be MET
 
Upvote 0
=IF(AND(C13>0,C25<C30),"MIN-OUT"),IF(AND(C18>0,C27<0),"MIN-OUT",IF(C27<=0,"MET","OUT"))

I'm sorry to keep trying to post my formula but it won't post what I am copying here....

=IF(AND(C13>0,C25<C30),"MIN-OUT"),IF(AND(C18>0,C27<0),"MIN-OUT",IF(C27<=0,"MET","OUT"))
 
Upvote 0
Is this the formula in words?

If C13 and C25 and C27 are less than zero, 'MIN-OUT'

Else If C27 less than zero, 'MET'

Else 'OUT'

=IF(AND(C13 > 0,C25 < 0,C27 < 0),"MIN-OUT",IF(C27 <= 0,"MET","OUT"))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,356
Members
448,888
Latest member
Arle8907

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