#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 115
Default Lookup for this?

Hi,

In col A I have numbers 1 to 500 in sequential order
In column B, I have values against each of these numbers
In column C I have numbers 1 to 500 in non-sequential order
In column D I want to match each number in column C with its equivalent in
column A and return the corresponding variable in column B to column D

For example, I have 8 in cell B25 and 25 in C1 and want to return 8 in D1
I have 15 in B107 and 107 in C2 and want to return 15 in D2 etc

Do I use LOOKUP, VLOOKUP etc for this or something else?

Can you give me an example of the formula?

Many thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default Lookup for this?

"Zakynthos" wrote:
Do I use LOOKUP, VLOOKUP etc for this or something else?


You can make either work. But in your case, the simplest might be: put the
following formula into D1 and copy down:

=vlookup(C1,$A$1:$B$500,2)

However, you might not need column A if your numbers are always sequential
starting with 1, 2 etc. In that case, you might consider:

=index($B$1:$B$500,C1)


----- original message -----

"Zakynthos" wrote:
Hi,

In col A I have numbers 1 to 500 in sequential order
In column B, I have values against each of these numbers
In column C I have numbers 1 to 500 in non-sequential order
In column D I want to match each number in column C with its equivalent in
column A and return the corresponding variable in column B to column D

For example, I have 8 in cell B25 and 25 in C1 and want to return 8 in D1
I have 15 in B107 and 107 in C2 and want to return 15 in D2 etc

Do I use LOOKUP, VLOOKUP etc for this or something else?

Can you give me an example of the formula?

Many thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 115
Default Lookup for this?

Thanks, very helpful, I'll give it a try!

"Joe User" wrote:

"Zakynthos" wrote:
Do I use LOOKUP, VLOOKUP etc for this or something else?


You can make either work. But in your case, the simplest might be: put the
following formula into D1 and copy down:

=vlookup(C1,$A$1:$B$500,2)

However, you might not need column A if your numbers are always sequential
starting with 1, 2 etc. In that case, you might consider:

=index($B$1:$B$500,C1)


----- original message -----

"Zakynthos" wrote:
Hi,

In col A I have numbers 1 to 500 in sequential order
In column B, I have values against each of these numbers
In column C I have numbers 1 to 500 in non-sequential order
In column D I want to match each number in column C with its equivalent in
column A and return the corresponding variable in column B to column D

For example, I have 8 in cell B25 and 25 in C1 and want to return 8 in D1
I have 15 in B107 and 107 in C2 and want to return 15 in D2 etc

Do I use LOOKUP, VLOOKUP etc for this or something else?

Can you give me an example of the formula?

Many thanks.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM


All times are GMT +1. The time now is 05:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"