Using a formula to search for specific values

magnum55

New Member
Joined
Nov 10, 2005
Messages
24
Hi,
This is my first post...

I've got a list of countries (colA) each with a number (colB) in the adjacent column in Sheet 1. What i want to try and do is put a formula/macro in another sheet (sheet 2) saying something like:

look at sheet1, Look through each country name, move 1 cell the right. If this contains a value >20 display the country name in this sheet (sheet2).

I assume that Ill have to name my list of countries as a range and maybe use an IF / VLOOKUP function but I'm not entirely sure....

Any ideas
 

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.

magnum55

New Member
Joined
Nov 10, 2005
Messages
24
I could but i wanted to be able to change one cell which has the value in and this would change my list. Is there a way to autofilter by referencing a value in a cell?

Thanks
 

Watch MrExcel Video

Forum statistics

Threads
1,129,592
Messages
5,637,290
Members
416,962
Latest member
samfuge

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
Top