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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
=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,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

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