Lopping through a range

Takes2ToTango

Board Regular
Joined
May 23, 2023
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I need to do the following but can't figure out how to do so.

I have a target number which is 12. I need to go through each row of a table and wherever the target number is, I need to grab the value in the Range column and then create a new list to the right.

1717067843537.png


AS the example above. The target is 12. We cycle through the table and where there is a 12 we pull out the Range letter and add it to our list on the right. So A and Z are both taken.

Hopefully this makes sense to someone.

Many thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Do you mean something like:

Excel Formula:
=FILTER(B2:B8,A2:A8=D2)
 
Upvote 0
Solution

Forum statistics

Threads
1,225,761
Messages
6,186,882
Members
453,381
Latest member
CGDobyns

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