Hello, I need a lookup macro

cyote101

Active Member
Joined
Dec 11, 2004
Messages
315
Hello all

I was wondering if some one has a goof lokup macro ,


criteria, works like the lookup funtion but is not a formula in a cell. for some reason I can not use the lookup funtion.

here is a model of the macro in formula syntax =Lookup("cell A",search in colum "G", retern value in same row in colum "e")

thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

Does

=INDEX(E:E,MATCH(A1,G:G,0))

work for you?


Do you still want a macro?
 

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
Have you tried using VLOOKUP?

It doesn't quite work in the way you describe. The syntax is:

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

If you have a block of data the value that your looking up has to be in the first column of your data and you can then return the value in any column of the array by specifying the column index. 1 is the first column, 2 the second etc.

Probably haven't explained very well but the function wizard will take you through it quite well if you're having problems.

Laters. (y)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,965
Messages
5,767,366
Members
425,407
Latest member
Mike Lescai

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