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))
 
Thank you to @SunnyAlv for working with me on this. I know you put in some work on it!

@Peter_SSs Yes sir that worked!! I can't even begin to tell you how thrilled i am. I wish there was some way i could thank ya'll for the assistance.

I think it's safe to say this was well beyond my knowledge. Do you mind breaking down *how* the entire formula works? i'd like to learn from it. I didn't quite understand what the purpose of the filter function was at the beginning. Also i see your multiplied the product and the description, or is that not an actual multiplier function in this case? it's easier for me to understand formulas if its "said out loud" or written out if that makes sense.

At any rate..man..load of my back lol.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Do you mind breaking down *how* the entire formula works?
=FILTER(INDEX(Data,0,MATCH(Quote[[#Headers],[3 YR Term]],Data[#Headers],0)),(Data[Product]=[@Product])*(Data[Description]=[@Description]),"")

The red part extracts the the column from the bottom table that has the same heading as the row 1 drop-down in the top table.
The blue part then filters that column to only show the rows (but I'm assuming only one row) where product and description match the row in the top table.

Also i see your multiplied the product and the description, or is that not an actual multiplier function in this case?
Multiplying conditions like that is the same as saying first condition AND second condition. So filter rows where product is correct AND description is correct.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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