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!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Thanks for that.
6466 does not exist in the table, try changing it to 6446 ;)

Also the values in E49 & E50 are text not numbers.
Also because of the merged cells when your drag the formula in G26 to the right it becomes COLUMNS('Use Me'!$G26:J26) which won't work.
Use
Rich (BB code):
=IFERROR(INDEX('Restriction List'!$A$2:$A$100,AGGREGATE(15,6,(ROW('Restriction List'!$A$2:$A$100)-ROW('Restriction List'!$A$2)+1)/('Restriction List'!$E$2:$E$100='Use Me'!$C$8)/('Restriction List'!$C$2:$C$100<>""),1)),"")
and then change the red 1 to a 2 for J26, and a 3 for M26
 
Upvote 0
Thanks for that.
6466 does not exist in the table, try changing it to 6446 ;)

Also the values in E49 & E50 are text not numbers.
Also because of the merged cells when your drag the formula in G26 to the right it becomes COLUMNS('Use Me'!$G26:J26) which won't work.
Use
Rich (BB code):
=IFERROR(INDEX('Restriction List'!$A$2:$A$100,AGGREGATE(15,6,(ROW('Restriction List'!$A$2:$A$100)-ROW('Restriction List'!$A$2)+1)/('Restriction List'!$E$2:$E$100='Use Me'!$C$8)/('Restriction List'!$C$2:$C$100<>""),1)),"")
and then change the red 1 to a 2 for J26, and a 3 for M26

Darn can't believe it was so obvious! thank you for all of your help!
 
Last edited by a moderator:
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,665
Members
449,045
Latest member
Marcus05

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