Would like a "Nested IF" Alternative

Rosstamon

Board Regular
Joined
Sep 12, 2007
Messages
77
I have a spreadseet where I am tracking several thousand rows of purchases and it will continuously grow.

I have a sort of run on Nested If statement and I'm wondering if there is a way to make this cleaner.

Here it is:

=IF(G2373="On Hand",0,IF(N2373="MP",0,IF(S2373="Canceled",0,IF(T2373="Canceled",0,IF(T2373="Partially Received",Z2373*J2373,J2373*K2373)))))

What I'm trying to accomplish is:
if G="On Hand", or if N="MP", or if S="Canceled", or if T="Canceled" then in each case or all cases this cell should = 0 (zero) otherwise if T="Partially Received" then Z*J, otherwise if none of these are true then J*K

Should I just stick with the "Nested IF" or is there an easier and/or cleaner way to do this?

Thanks,
Rosstaman
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
=IF(OR(G273="On Hand",N2373="MP",S2373="Cancelled"),0,J2373*IF(T2373="Partially Received",Z2373,K2373))
 
Upvote 0
HOTPEPPER,
Yes that worked. I appreciate your help. Do you know if this formula will use less processor than my Nested If string and thus speed up response time?

The reason I asked for an alternative formula is with so many Nested Ifs on several thousand lines, I'm thinking it's creating latency. Possible?

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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