Index Formula Help

Gladston

New Member
Joined
Oct 12, 2014
Messages
10
Hello Everyone,

I hope all is well.

I am looking for some help with the Index formula. I know that you cannot do a vlookup using multiple criteria, thus the need for an index formula. However, I am 100% new to the index formula, and it honestly confuses me at the moment. Looking to see if someone can help by providing me the formula i need to complete a workbook I am involved in. I am hoping that once I can see the formula in action, used the way i need it to, I can better understand it. With that said, here is what I need help with.

Sheet 1

I have a table on Sheet 1, with the following Data:

Description
Company
Quantity
Unit
Eq Grams
Price
Shipping
Total
Unit cost
Product 1
ABC Store
8
Ounce
226.80
70.72
-
70.72
0.31
Product 2
XYZ Store
1
Gallon
3,628.74
500.00
-
500.00
0.14

<tbody>
</tbody>


On Sheet 2, I have essentially the Same Table, but what I am looking to do is make it auomated so that when I type in the Description and Company name, the rest of the information autmatically populates. The idea is that, Sheet 1 has a plethora of possible options, and Sheet 2 is a consolidated list of preferred options. So, if I decide to switch from Product 1 to Product 2, I can have all the relevant and respective data auto update so I don't have to manually do that.


Sheet 2
Description
Company
Quantity
Unit
Eq Grams
Price
Shipping
Total
Unit cost
Product 1
ABC Store
Formula
Formula
Formula
Formula
Formula
Formula
Formula

<tbody>
</tbody>


Any and all help would be greatly greatly appreciated. Thanks in advance for your help!

Brad
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi and welcome to the board....
If both of your tables start in A1, you can paste the following in your sheet 2 cell C2

=INDEX(Sheet1!C2:I3,MATCH(A2&B2,Sheet1!A2:A3&Sheet2!B2:B3,0),0)

and end with CTRL+SHIFT+ENTER since this is an array formula...
 
Upvote 0
Welcome to the board,

You could go with INDEX & MATCH, but I'd use SUMPRODUCT...
Excel Workbook
ABCDEFGHI
1DescriptionCompanyQuantityUnitEq GramsPriceShippingTotalUnit cost
2Product 1ABC Store80226.870.72070.720.31
Sheet2
 
Upvote 0
Hello All!

Thanks for the welcome! I have referred to this forum site so often and am finally using it as a member. It's so helpful and you get great information from it. Glad to be here!

Thanks Njimack and Caribeiro77 for your help! I appreciate it. Unfortunate when I tried both methods, i kept getting a 0 returned to me. I modified the sheet names to match my workbook, and entered with CTRL+SHIFT+ENTER, and did receive the brackets. Unfortunately niether one worked. Any idea as to why I would be getting a 0 back?

Getting a better grasp of the formula, I branched out and tried the following

=+INDEX(Table1[[Contact]:[Notes]],AND(MATCH(Table13[[#This Row],[Description]],Table1[Description],0),MATCH(Table13[[#This Row],[Company]],Table1[Company],0)),MATCH(Table13[[#Headers],[Quantity]],'Material Sourcing'!1:1,0))


Now it seems to be pulling data, however, incorrectly. Any advice?

thanks!

Brad
 
Upvote 0
In my formula try this change:

=INDEX(Sheet1!C2:I3,MATCH(A2&B2,Sheet1!A2:A3&Sheet1!B2:B3,0),0)

and end with CTRL+SHIFT+ENTER ...
 
Upvote 0

Forum statistics

Threads
1,214,541
Messages
6,120,110
Members
448,945
Latest member
Vmanchoppy

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