If multiple conditions

Dexir

New Member
Joined
Oct 27, 2018
Messages
38
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
If multiple conditions.xlsx
BCDE
280%90%100%
3Primary102030
4Secondary100200300
5General100020003000
6
7
8Secondary80%100
Sheet1
Cell Formulas
RangeFormula
E8E8=IF(C8=B3,IF(D8=C2,C3,IF(D8=D2,D3,IF(D8=E2,E3,0))),IF(C8=B4,IF(D8=C2,C4,IF(D8=D2,D4,IF(D8=E2,E4))),IF(C8=B5,IF(D8=C2,C5,IF(D8=D2,D5,IF(D8=E2,E5))))))
Cells with Data Validation
CellAllowCriteria
C8List=$B$3:$B$5


I have this sheet, where i am using if multiple conditions formula, this is lengthy formula, is there any alternate formula for this ?
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Seems you are after an exact 2-way lookup.
Book1
BCDE
280%90%100%
3Primary102030
4Secondary100200300
5General100020003000
6
7Primary0,920
820
Sheet1
Cell Formulas
RangeFormula
E7E7=INDEX(C3:E5,XMATCH(C7,B3:B5),XMATCH(D7,C2:E2,))
E8E8=XLOOKUP(D7,C2:E2,XLOOKUP(C7,B3:B5,C3:E5))
 
Upvote 0
Thanks alot, but sorry to say that i am using Office 2016 in office. Xlookup and Xmatch doesn't working.
 
Upvote 0
How about

Book1
ABCD
180%90%100%
2Primary102030
3Secondary100200300
4General100020003000
5
6
7Secondary80%100
Sheet2
Cell Formulas
RangeFormula
D7D7=SUMPRODUCT((B1:D1=C7)*(A2:A4=B7)*(B2:D4))
 
Upvote 0
How about
Excel Formula:
=INDEX(C3:E5,MATCH(C8,B3:B5,0),MATCH(D8,C2:E2,0))
 
Upvote 0
Solution
Thanks alot., Mr. JEC & Mr. Fluff. it is working perfect.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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