Index/Match Cannot The Find Column

williamfr

New Member
Joined
Sep 14, 2023
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Good evening everyone. I'm having a really tough time and don't know what else to do.

I'm creating a quoting tool for a sales team. They choose the Product, Description(sub product), and contract length in the header to spit out the correct price for the product. It finds the correct row number when i go through the error breakdown, but it cannot find the correct Term price spread across 5 columns. The first block is my form. Data validations drop down lists are bolded. Second block is my data. No matter how i enter the formula into the term column on the form, i either get an error or it returns the base price. It never returns the correct term price no matter what i've tried. the third block is my current formula. For reference, the correct answer on my Managed WiFi Access point should be $10.46, not $14.95.

I understand i'm doing something wrong here, because the direction of data changes with the column array. Unfortunately my brain can't handle it. I've been googling examples and tutorials for like 8 hours. Does anyone have any ideas?

D​
E​
F​
G​
H​
I​
ProductDescriptionQuantity3 YR TermTotalBill Period
Installation FeePhone/Internet/TV1$ 100.00$ 100.00One Time Fee
Managed WiFiAccess Point2$ 14.95$ 29.90Monthly

Table Name: Data
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
RegionTechnologyNetworkProductDescriptionBillingBase Price1 YR Term2 YR Term3 YR Term5 YR Term
AllAllAllManaged WiFiAccess PointMonthly$ 14.95-$ 11.96$ 10.46$ 10.46
AllAllAllInstallation FeePhone/Internet/TVOne Time Fee$ 100.00$ 100.00$ 100.00$ 100.00$ 100.00

=INDEX(Data[[Product]:[5 YR Term]],MATCH([@Product]&[@Description],Data[Product]&Data[Description],0),MATCH(Quote[[#Headers],[3 YR Term]],Data[[#Headers],[Base Price]:[5 YR Term]],0))
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Like This ?

Xlookup Version :
1694746839174.png



Index Match Version :

1694746893915.png
 
Upvote 0
Like This ?

Xlookup Version :
View attachment 98761


Index Match Version :

View attachment 98762

the term column, G1, is a data validation drop down list that can be changed from Base Price, 1 YR Term, 2 YR Term, 3 YR Term, 5 YR Term. If the user chose 2 year term, then it would change the access point price from 10.46 to 11.96. Thats the part i'm struggling with..having it find the correct price across those 5 term columns, based on the term chosen :/ Base Price is included even though it doesn't say term.
 
Upvote 0
the term column, G1, is a data validation drop down list that can be changed from Base Price, 1 YR Term, 2 YR Term, 3 YR Term, 5 YR Term. If the user chose 2 year term, then it would change the access point price from 10.46 to 11.96. Thats the part i'm struggling with..having it find the correct price across those 5 term columns, based on the term chosen :/ Base Price is included even though it doesn't say term.
Ah, I see, so the trigger is based on which year is selected, the price of the selected year will appear, what do you mean by that?
 
Upvote 0
ProductDescriptionQuantity3 YR Term
This is a drop down list cell
TotalBill Period
Managed WiFi This is a drop down list cellAccess Point This is a drop down list cell1$ 14.95$ 14.95Monthly
If 3 YR Term is chosen above, it should show the corresponding 3 year price for a managed wifi access point, which would be $10.46. If the user chooses 2 year, it would show $11.96 like below.
ProductDescriptionQuantity2 YR Term
This is a drop down list cell
TotalBill Period
Managed WiFi This is a drop down list cellAccess Point This is a drop down list cell1$ 11.96$ 11.96Monthly
My brain is fried so i hope i'm making sense
 
Upvote 0
If 3 YR Term is chosen above, it should show the corresponding 3 year price for a managed wifi access point, which would be $10.46. If the user chooses 2 year, it would show $11.96 like below.

My brain is fried so i hope i'm making sense
the top is returning a "base price" instead of a 3 year price in my example
 
Upvote 0
try this and trigger on G1




View attachment 98763
that works for the small scale test! however...after setting it up with my actual product/data page references..it doesn't seem to work. currently i have rows 3-61 full of data and plan to have likely upwards to 500 rows. is that {2,3} limiting me to just the first two rows?
 
Upvote 0
honestly, its really hard but i have 2 option for u ya

First u follow my formula below, and u can add some criteria before IF Formula and adding additional IF Formula

=LET(
BasePrice,XLOOKUP(CONCATENATE(A11,B11,F11),CONCATENATE($D$2:$D$5,$E$2:$E$5,$F$2:$F$5),$G$2:$G$5),

OneYear,XLOOKUP(CONCATENATE(A11,B11,F11),CONCATENATE($D$2:$D$5,$E$2:$E$5,$F$2:$F$5),$H$2:$H$5),

TwoYear,XLOOKUP(CONCATENATE(A11,B11,F11),CONCATENATE($D$2:$D$5,$E$2:$E$5,$F$2:$F$5),$I$2:$I$5),

ThreeYear,XLOOKUP(CONCATENATE(A11,B11,F11),CONCATENATE($D$2:$D$5,$E$2:$E$5,$F$2:$F$5),$J$2:$J$5),

FiveYear,XLOOKUP(CONCATENATE(A11,B11,F11),CONCATENATE($D$2:$D$5,$E$2:$E$5,$F$2:$F$5),$K$2:$K$5),

IF($D$10=$G$1,BasePrice,IF($D$10=$H$1,OneYear,IF($D$10=$I$1,TwoYear,IF($D$10=$J$1,ThreeYear,FiveYear)))))

1694761793589.png



Second, u must add 1 Column for Trigger only, so u easy to lookup the data

If I'm wrong please forgive :)
Thanks
 
Last edited:
Upvote 0
Welcome to the MrExcel board!

Does this do what you want?

williamfr.xlsm
ABCDEFGHIJK
1ProductDescriptionQuantity3 YR TermTotalBill Period
2Installation FeePhone/Internet/TV1$100.00$100.00One Time Fee
3Managed WiFiAccess Point2$10.46$20.92Monthly
4
5
6
7
8RegionTechnologyNetworkProductDescriptionBillingBase Price1 YR Term2 YR Term3 YR Term5 YR Term
9AllAllAllManaged WiFiAccess PointMonthly$14.95-$11.96$10.46$10.46
10AllAllAllInstallation FeePhone/Internet/TVOne Time Fee$100.00$100.00$100.00$100.00$100.00
11
12
Sheet1
Cell Formulas
RangeFormula
G2:G3G2=FILTER(INDEX(Data,0,MATCH(Quote[[#Headers],[3 YR Term]],Data[#Headers],0)),(Data[Product]=[@Product])*(Data[Description]=[@Description]),"")
H2:H3H2=[@Quantity]*[@[3 YR Term]]
Cells with Data Validation
CellAllowCriteria
G1List=$G$8:$K$8
 
Upvote 1
Solution

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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