Is there anyway to simply this formula?

mailbox

New Member
Joined
Jun 30, 2012
Messages
7
Here is the formula:
=IF(DI4>0,DM4,IF(DD4>0,DH4,IF(CY4>0,DC4,IF(CT4>0,CX4,IF(CO4>0,CS4,IF(CJ4>0,CN4,IF(CE4>0,CI4,IF(BZ4>0,CD4,IF(BU4>0,BY4,IF(BP4>0,BT4,IF(BK4>0,BO4,IF(BF4>0,BJ4,IF(BA4>0,BE4,IF(AV4>0,AZ4,IF(AQ4>0,AU4,IF(AL4>0,AP4,0))))))))))))))))

if possible, I would like to simplify it.
 
I don't think so. I was looking at it and i couldn't find a single common item or pattern that would let us use AND or OR.
 
Upvote 0
Here is the formula:
=IF(DI4>0,DM4,IF(DD4>0,DH4,IF(CY4>0,DC4,IF(CT4>0,CX4,IF(CO4>0,CS4,IF(CJ4>0,CN4,IF(CE4>0,CI4,IF(BZ4>0,CD4,IF(BU4>0,BY4,IF(BP4>0,BT4,IF(BK4>0,BO4,IF(BF4>0,BJ4,IF(BA4>0,BE4,IF(AV4>0,AZ4,IF(AQ4>0,AU4,IF(AL4>0,AP4,0))))))))))))))))

if possible, I would like to simplify it.

Does the order of IFs any sgnificance? Put otherwise, is the value which corresponds to any non-zero value ok?
 
Upvote 0
In the spreadsheet I am setting up a calculation based on if a section of data has been entered or not, the first if is the last piece of data, the last if is the first piece of data. So in order words, i believe the order is important.
 
Upvote 0
In the spreadsheet I am setting up a calculation based on if a section of data has been entered or not, the first if is the last piece of data, the last if is the first piece of data. So in order words, i believe the order is important.

Is there more than one greater-than-zero cell at any time undergoing the IF test?
 
Upvote 0
Hi,
try to reorganize Your Data if it is possible. Put Your Data e. g. to Columns A:B, to A1:B16 (You have 16 IF's in the Formula) exactly and try using the array Formula (Ctrl+Shift+Enter):
Code:
=IF(MIN(IF(A1:A16>0,ROW(A1:A16),""))=0,0,INDEX(B1:B16,MIN(IF(A1:A16>0,ROW(A1:A16),""))))
Best regards.
 
Last edited:
Upvote 0

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