Formula needed for ongoing spreadsheet with a look up

Zilla

Board Regular
Joined
Nov 16, 2006
Messages
88
Office Version
  1. 2016
Platform
  1. Windows
Hi

I have always used Vlookup but now I need a little bit more.
I have a spreadsheet where 90% of the data and columns will remain the same but the on hand qty will always change.

I created a small sample sheet where I have column A two different stores that care the same product number and on the data sheet they have two different quantities. It appears I might need an IF and a vlookup but not sure how to do this. Can anyone help.

Sample of the sheet below or you can go to drop box and download the file in excel.

https://www.dropbox.com/sh/y05rrxsxf533lor/AAAjfrZkBPzB8QmMM8HgCe1la?dl=0

Spreadsheet

Store Product Product Name Supplier Product qty
Store 111 34 Box S1
Store 222 42 Pencil S2
Store 111 42 Pencil S333
Store 111 67 Paper S4
Store 222 67 Paper S1
Store 222 83 Red Pen S333
Store 111 91 Green pen S22
Store 111 117 Box 2 S2
Store 222 117 Box 2 S1
Store 111 125 Blue Pen S2
Store 111 125 Blue Pen S333
Store 222 141 Paper 1 S4
Store 111 141 Paper 1 S333

Data

Store Product Product qty
Store 111 34 5
Store 222 34 12
Store 111 42 25
Store 111 67 88
Store 111 83 54
Store 222 141 68
Store 111 141 25
Store 222 34 25
Store 222 117 12
Store 111 125 25
Store 222 125 88
Store 111 91 54
Store 222 91 68
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
=IFERROR(INDEX($K$4:$K$16,MATCH(A4&"|"&B4,INDEX($I$4:$I$16&"|"&$J$4:$J$16,0),0)),"")
 
Upvote 0
How about
=IFERROR(INDEX($K$4:$K$16,MATCH(A4&"|"&B4,INDEX($I$4:$I$16&"|"&$J$4:$J$16,0),0)),"")

How would the formula read if the data was on a separate sheet?
Example instead of I J K it would be A B C.

I tried but it didnt work on a separate sheet.

It did work on the original sheet.

Thank you for that
 
Upvote 0
How about
=IFERROR(INDEX(Data!$C$2:$C$14,MATCH(A4&"|"&B4,INDEX(Data!$A$2:$A$14&"|"&Data!$B$2:$B$14,0),0)),"")
 
Upvote 0
Yes Thank you

I had an extra ( ) after the & and yours did not and worked. "&(Data!$B$2:$B$14,0)),0)),"")

I appreciate the help
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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