Help in Generating a Formula

omarmalik85

New Member
Joined
Mar 28, 2021
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Hi Guys,

I need help in creating a formula using the below sheet. Whereby if I select the three options and if all three selections match I get the result. I have put two Examples on the left to explain what I want. I would really appreciate your help in it.

Feel free to ask if you need more information.


Test Sheet.xlsx
ABCDEFGHIJKLMN
2130EXAMPLE 1EXAMPLE 2
3Size / Qty1000015000200002500050000100000OPTION1:130OPTION1:150
4A5$80$112$160$200$350$650OPTION2:25000OPTION2:10000
5A4$200$280$320$395$695$1,295OPTION3:A4OPTION3:A3
6A4 ext$325$455$420$525$950$1,700Result:395Result:450
7B4$325$455$420$525$950$1,700
8A3$350$510$590$695$1,295$2,450
9
10150
11Size / Qty1000015000200002500050000100000
12A5$125$175$208$260$425$800
13A4$280$392$380$475$900$1,600
14A4 ext$395$553$480$600$1,050$1,950
15B4$395$553$480$600$1,050$1,950
16A3$450$630$720$900$1,550$2,900
17
18170
19Size / Qty1000015000200002500050000100000
20A5$160$224$260$325$500$950
21A4$300$420$440$550$950$1,750
22A4 ext$450$630$556$695$1,225$2,300
23B4$450$630$556$695$1,225$2,300
24A3$450$630$740$925$1,700$3,200
Sheet1
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Your layout is not formula friendly, this is about the closest you will get that will work reliably.
sumif weeknum (version 1).xlsb
ABCDEFGHIJKLMN
2EXAMPLE 1EXAMPLE 2
3Size / Qty1000015000200002500050000100000OPTION1:130OPTION1:150
4130A580112160200350650OPTION2:25000OPTION2:10000
5130A42002803203956951295OPTION3:A4OPTION3:A3
6130A4 ext3254554205259501700Result:395Result:450
7130B43254554205259501700
8130A335051059069512952450
9
10
11Size / Qty1000015000200002500050000100000
12150A5125175208260425800
13150A42803923804759001600
14150A4 ext39555348060010501950
15150B439555348060010501950
16150A345063072090015502900
17
18
19Size / Qty1000015000200002500050000100000
20170A5160224260325500950
21170A43004204405509501750
22170A4 ext45063055669512252300
23170B445063055669512252300
24170A345063074092517003200
Sheet8
Cell Formulas
RangeFormula
K6,N6K6=INDEX($C$4:$H$24,MATCH(K3&"|"&K5,$A$4:$A$24&"|"&$B$4:$B$24,0),MATCH(K4,$C$3:$H$3,0))
 
Upvote 0
Hi,

Thanks for the prompt reply. But I am getting the #VALUE! when using your formula.


Your layout is not formula friendly, this is about the closest you will get that will work reliably.
sumif weeknum (version 1).xlsb
ABCDEFGHIJKLMN
2EXAMPLE 1EXAMPLE 2
3Size / Qty1000015000200002500050000100000OPTION1:130OPTION1:150
4130A580112160200350650OPTION2:25000OPTION2:10000
5130A42002803203956951295OPTION3:A4OPTION3:A3
6130A4 ext3254554205259501700Result:395Result:450
7130B43254554205259501700
8130A335051059069512952450
9
10
11Size / Qty1000015000200002500050000100000
12150A5125175208260425800
13150A42803923804759001600
14150A4 ext39555348060010501950
15150B439555348060010501950
16150A345063072090015502900
17
18
19Size / Qty1000015000200002500050000100000
20170A5160224260325500950
21170A43004204405509501750
22170A4 ext45063055669512252300
23170B445063055669512252300
24170A345063074092517003200
Sheet8
Cell Formulas
RangeFormula
K6,N6K6=INDEX($C$4:$H$24,MATCH(K3&"|"&K5,$A$4:$A$24&"|"&$B$4:$B$24,0),MATCH(K4,$C$3:$H$3,0))
 
Upvote 0
There is nothing in the formula to cause a #VALUE! error, you would get a #N/A error if there was no match for the selected options, but no other errors are possible.
 
Upvote 0
You may need to confirm the formula with Ctrl Shift Enter, depending on which version of Xl you are using.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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