Error in Nested IF formula

RAMU

Active Member
Joined
Dec 11, 2009
Messages
321
Dear Friends,
I am trying a nested if formula like this
=IF(AND($F4="D",(AE4<=60)),AF4*0.005,IF(AND($F4="D",(AE4<=90)),AF*0.0025,IF(AND($F4="D",(AE4<=120)),AF4*0.0015,IF(AND($F4="D",(AE4>120)),AF4*0,IF(AND($F4="",(AE4<=45)),AF4*0.01,IF(AND($F4="",(AE4<=60)),AF4*0.005,IF(AND($F4="",(AE4<=90)),AF4*0.0025,IF(AND($F4="",(AE4<=120)),AF4*0.0015,IF(AND($F4="",(AE4>120)),AF4*0,0)))))))))

"F" column is carrying word "D" or blank, AE column is signifying Days, & AF column is a value. I am trying to calculate a figure. But when "F" column's cells are "D" & "AE" column (Days) is carrying figure 61 to 90, result is coming #NAME?
Can't figure out my mistake in formula.
Pls help.

Regards
RAMU
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Depending on your version of excel, you may be exceeding the IF limit. On older versions you can't have more than 7 It's in a formula...and you are using 9 IFs
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,956
Latest member
JPav

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