Merger index

parsec

Board Regular
Joined
Aug 10, 2002
Messages
111
Here is my Issue.
Sheet1 (with four Columns )
ItemNumber | Name | QtyOnHand | Actualcount

Sheet2 (With two columns)
ItemNumber | Qty

I am using this formula "=INDEX(Sheet2!$B$2:$B$7,MATCH(A2,$A$2:$A$7,0))" to match the ItemNumber on any cell in both of the Sheets and get the value fro Sheet2 ""Oty" into Sheet1 Actualcount
Some how it has become a difficulty for me to make it work.
if possible I like to see how the INDEX/MATCH, or Power Query works
thank you
John
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
test10 28 2020.xlsx
ABCD
1ItemNumbernameQtyOnHandActualcount
2123test12350111
3321test3211060
4#N/A
Sheet1
Cell Formulas
RangeFormula
D2:D4D2=INDEX(Sheet2!$B$2:$B$7,MATCH(A2,$A$2:$A$7,0))



test10 28 2020.xlsx
ABCD
1upccount
2321111
312360
4
Sheet2
 
Upvote 0
maybe
Table1Table2Result
upccountItemNumbernameQtyOnHandItemNumbernameQtyOnHandActualcount
321111123test12350123test1235060
12360321test32110321test32110111

Power Query:
let
    Source1 = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Source2 = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    Join = Table.NestedJoin(Source2,{"ItemNumber"},Source1,{"upc"},"Table",JoinKind.LeftOuter),
    Expand = Table.ExpandTableColumn(Join, "Table", {"count"}, {"Actualcount"})
in
    Expand
 
Upvote 0
Book1
BCDEFGH
1Table1Table2
2upccountItemNumbernameQtyOnHandActualcount
3321111123test1235060
412360321test32110111
Sheet1
Cell Formulas
RangeFormula
H3:H4H3=INDEX($C$3:$C$4,MATCH(E3,$B$3:$B$4,0))
 
Upvote 0
Thank you for your time.
I like to ask you another question.
I have connect via ODBC the above Sheet(table2) to an active database , I am able to get the data that I need from the database. What I like to do, is update the QtyOnHand (a field in the database) from the Actualcount.
I will apricate any a direction to the matter
Thank you
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,876
Members
449,476
Latest member
pranjal9

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