BeardedSith
New Member
- Joined
- Mar 9, 2020
- Messages
- 6
- Office Version
- 365
- 2019
- Platform
- Windows
I had this working at one time but as all things go, I accidently deleted the formula and can't for the life of me remember what syntax I used to accomplish this task. Here's the code, the long version of this question will follow:
Long Version:
I have a sheet that I use for pricing updates on our eCommerce website. The owner sends me a spreadsheet that I input into a spreadsheet template, then I export all the necessary data from our eCommerce site. The sheet has the following columns on the "Updates" sheet (more than this, but this is the part that matters)"
COLUMNS:
Price
Retail
SheetName
First
ROWS:
1) 8.99, 9.99, meguiars, M-1808
2) 10.99, 12,99, meguiars, M-1990
3) 5.99, 12.99, meguiars, M-1991
On the second sheet I have:
COLUMNS:
Wolfs
Part
List
Without the INDIRECT in the formula, it works perfectly getting the exact data I need. The problem is having the named range as a lookup location. I can do INDIRECT("'" & [@SheetName] & "'!" & "A2") but the "[Wolfs]", etc. is causing #REF! errors. So I'm obviously missing some quotes or something somewhere. Thank in advance!
Code:
=IFERROR(INDEX(INDIRECT("'" & [@SheetName] & "'!" & "[Wolfs]"),MATCH([@First],(INDIRECT("'" & [@SheetName] & "'!" & "[Part]")),0)),"Not Found")
Long Version:
I have a sheet that I use for pricing updates on our eCommerce website. The owner sends me a spreadsheet that I input into a spreadsheet template, then I export all the necessary data from our eCommerce site. The sheet has the following columns on the "Updates" sheet (more than this, but this is the part that matters)"
COLUMNS:
Price
Retail
SheetName
First
ROWS:
1) 8.99, 9.99, meguiars, M-1808
2) 10.99, 12,99, meguiars, M-1990
3) 5.99, 12.99, meguiars, M-1991
On the second sheet I have:
COLUMNS:
Wolfs
Part
List
Without the INDIRECT in the formula, it works perfectly getting the exact data I need. The problem is having the named range as a lookup location. I can do INDIRECT("'" & [@SheetName] & "'!" & "A2") but the "[Wolfs]", etc. is causing #REF! errors. So I'm obviously missing some quotes or something somewhere. Thank in advance!