Formula help - Nested IF function?

kidwispa

Active Member
Joined
Mar 7, 2011
Messages
330
Hi,

I was wondering if someone could help me with this formula. I have the following fields

Sales Value = Column A
Carrier Credit = Column B
Credit = Column C
Status = Column D
Amount = Column E

Here is what I'm trying to achieve:

1.If Column D says either "Rejected < £20.00" or "Rejected - Outside Agreed Timeframe" then it returns the value in Column C.

2. If Column D says anything other than the two things in point 1, AND column B is empty, then it returns the sum column C minus column A, otherwise it's column C minus column B.

I've been trying to figure this formula out for a few hours now so if anyone could help that would be great

Thanks

:)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Assuming Row 1 has headers, how about

Code:
=IF(OR(D2="Rejected < £20.00",D2="Rejected - Outside Agreed Timeframe"),C2,IF(B2="",C2-A2,C2-B2))
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

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