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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

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)
 

Forum statistics

Threads
1,148,051
Messages
5,744,520
Members
423,881
Latest member
Nguyen Vu

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