Using a formula to look up multipul values based on one other value.

Browneh89

Board Regular
Joined
Mar 8, 2019
Messages
55
Office Version
  1. 365
Platform
  1. Windows
Hey,

I hope I can explain this correctly. I'm trying to write a formula which looks at a value and uses it to pull up 2 different lines of criteria..

1603377517642.png


So in the first table it would look at the number in the area box and compare it to the second table.

it would then pull the code for requirement 1 and 2 in the lower rows in the second table.

I can't use XL2BB to better explain because I am at work!

Thank you for any help in advance!
 
If the formula is in G26, C8 has the route & you want the store number for anything that needs Wrap, then that formula looks fine.
In what way is it not working?
Yup they are in those locations. I'm not really sure why it won't work but it just pulls nothing so i'm assuming it's an error.

1603392893097.png


1603392930343.png


Is this the only method you can use for this?
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If you remove the Iferror portion, what do you get?
 
Upvote 0
In that case it can't find anything that matches, check that the value in C8 is exactly the same as the routes in col E.
Make sure no leading/trailing spaces & that they are all numbers.
 
Upvote 0
In that case it can't find anything that matches, check that the value in C8 is exactly the same as the routes in col E.
Make sure no leading/trailing spaces & that they are all numbers.
Yup I checked everything and no luck. the formula is written in a merged cell if that is an issue although that typically plays up more with VBA macros then formulas.

the routes in Col E are actually pulled via a match index however I have a few I'm using as a test which are written manually and stiff no luck :/
 
Upvote 0
What happens if you get rid of the merged cells?
Merged cells are an abomination & should be avoided like the plague.
 
Upvote 0
What happens if you get rid of the merged cells?
Merged cells are an abomination & should be avoided like the plague.
Nothing differently unfortunately it was one of the first things I attempted!
 
Upvote 0
In that case would you be able to share your workbook?
If so you will need to upload it to a share site like OneDrive or GoogleDrive, mark for sharing & then post the link you get to the thread.
 
Upvote 0
That's asking me to sign in, you need to mark the file for sharing & then post the link that you get.
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,653
Members
449,462
Latest member
Chislobog

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