Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Finding a value or the one next to it in a range NOT array

Picture data in a phone book with 5 columns of names and numbers 10 cols
total. I need a function that will look up the name and return the number
that will work if I don't know in advance which column the name will be in.
(they aren't in alpha order). Vlookup and match presume I know which column I
am dealing with. Help this has taken many unprofitable hours from my life.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Finding a value or the one next to it in a range NOT array

So, do you mean you have names in columns A, C, E, G and I and numbers
in columns B, D, F, H and J? The name you are looking for could be
anywhere in those 5 columns (or maybe not present at all)?

Pete

On Aug 6, 8:21*am, advanced novice <advanced
wrote:
Picture data in a phone book with 5 columns of names and numbers 10 cols
total. I need a function that will look up the name and return the number
that will work if I don't know in advance which column the name will be in.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Finding a value or the one next to it in a range NOT array

Exactly, except in my case I know the name will always be there, but it is
possible the number will have a value of 0. Thank you for attemping to answer
this!

"Pete_UK" wrote:

So, do you mean you have names in columns A, C, E, G and I and numbers
in columns B, D, F, H and J? The name you are looking for could be
anywhere in those 5 columns (or maybe not present at all)?

Pete

On Aug 6, 8:21 am, advanced novice <advanced
wrote:
Picture data in a phone book with 5 columns of names and numbers 10 cols
total. I need a function that will look up the name and return the number
that will work if I don't know in advance which column the name will be in.
(they aren't in alpha order). Vlookup and match presume I know which column I
am dealing with. Help this has taken many unprofitable hours from my life..



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Finding a value or the one next to it in a range NOT array

Okay, I'm assuming you are entering a name into cell A1 on Sheet2 and
you want your answer returned to cell B1, and that your data is on
Sheet1. Put this formula in B1:

=IF(ISNA(MATCH(A1,Sheet1!A:A,0)),"",VLOOKUP(A1,She et1!A:B,
2,0))&IF(ISNA(MATCH(A1,Sheet1!C:C,0)),"",VLOOKUP(A 1,Sheet1!C:D,
2,0))&IF(ISNA(MATCH(A1,Sheet1!E:E,0)),"",VLOOKUP(A 1,Sheet1!E:F,
2,0))&IF(ISNA(MATCH(A1,Sheet1!G:G,0)),"",VLOOKUP(A 1,Sheet1!G:H,
2,0))&IF(ISNA(MATCH(A1,Sheet1!I:I,0)),"",VLOOKUP(A 1,Sheet1!I:J,2,0))

Hope this helps.

Pete

On Aug 6, 2:38*pm, advanced novice
wrote:
Exactly, except in my case I know the name will always be there, but it is
possible the number will have a value of 0. Thank you for attemping to answer
this!



"Pete_UK" wrote:
So, do you mean you have names in columns A, C, E, G and I and numbers
in columns B, D, F, H and J? The name you are looking for could be
anywhere in those 5 columns (or maybe not present at all)?


Pete


On Aug 6, 8:21 am, advanced novice <advanced
wrote:
Picture data in a phone book with 5 columns of names and numbers 10 cols
total. I need a function that will look up the name and return the number
that will work if I don't know in advance which column the name will be in.
(they aren't in alpha order). Vlookup and match presume I know which column I
am dealing with. Help this has taken many unprofitable hours from my life..- Hide quoted text -


- Show quoted text -


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
Finding the Location within an Array Sh0t2bts Excel Worksheet Functions 2 December 5th 07 01:06 PM
Help in finding Value in Index Array George Excel Discussion (Misc queries) 20 October 29th 07 11:48 PM
Finding the least frequent value in an array Dave D[_2_] Excel Discussion (Misc queries) 3 May 5th 07 12:56 PM
Finding Data in an Array Hannah Excel Worksheet Functions 5 April 17th 07 05:10 AM
Finding max array value of variable cell range The Fisherman Excel Discussion (Misc queries) 0 February 6th 07 02:54 PM


All times are GMT +1. The time now is 01:39 AM.

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

About Us

"It's about Microsoft Excel"