Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gordo
 
Posts: n/a
Default Looking up values

Someone please help.
I have a workbook which contains the following information:

SKU Loc
191400 A1012
191400 A1015
191400 D6012
191400 E1019
191400 h1004

I have a seperate workbook which displays the sku once. When i use
vlookup it brings back the first loc in this example would be A1012,
however is there a formula where i can bring the second value back
(A1015). Please note that this workbook changes as do the cell values
so using =cell# is not an option.

Please help

  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On 25 Jun 2005 09:20:28 -0700, "gordo" wrote:

Someone please help.
I have a workbook which contains the following information:

SKU Loc
191400 A1012
191400 A1015
191400 D6012
191400 E1019
191400 h1004

I have a seperate workbook which displays the sku once. When i use
vlookup it brings back the first loc in this example would be A1012,
however is there a formula where i can bring the second value back
(A1015). Please note that this workbook changes as do the cell values
so using =cell# is not an option.

Please help


Here's one way:

1. Your list of SKU's is in a named column named "SKU" or a range reference
that does not represent an entire column.
2. Your list of Loc's is in a named column named "Loc" or a range reference
that does not represent an entire column.
3. A1:= the SKU you are searching for
4. A2:= the instance that you are looking for (1,2, etc.)
5. If you type in an instance greater than the maximum, as written the formula
will return an error.

This is an *array* formula, so after you type or paste it in, hold down
<ctrl<shift while hitting <enter. Excel will place braces {...} around the
formula.

=INDEX(Loc,LARGE((A1=SKU)*ROW(SKU),COUNTIF(SKU,A1)-A2+1)-1)



--ron
  #3   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Hi,

Array enter this one (Ctrl+Shift+Enter)

IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$1 0,ROW($A$1:$A$7)),ROW(1:1)),2)),"",INDEX($A$1:$B$7 ,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)),ROW(1:1) ),2))

A1:A7 houses the SKU no and B1:B7 houses the LoC no. A10 houses the SKU
against which you want the value.

Regards,

Ashish Mathur

"gordo" wrote:

Someone please help.
I have a workbook which contains the following information:

SKU Loc
191400 A1012
191400 A1015
191400 D6012
191400 E1019
191400 h1004

I have a seperate workbook which displays the sku once. When i use
vlookup it brings back the first loc in this example would be A1012,
however is there a formula where i can bring the second value back
(A1015). Please note that this workbook changes as do the cell values
so using =cell# is not an option.

Please help


  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 25 Jun 2005 19:44:01 -0700, "Ashish Mathur"
wrote:

Hi,

Array enter this one (Ctrl+Shift+Enter)

IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$ 10,ROW($A$1:$A$7)),ROW(1:1)),2)),"",INDEX($A$1:$B$ 7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)),ROW(1:1 )),2))

A1:A7 houses the SKU no and B1:B7 houses the LoC no. A10 houses the SKU
against which you want the value.

Regards,

Ashish Mathur


With the data set posted, using your formula, I seem to get the first Loc
returned: A1012


--ron
  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 25 Jun 2005 19:44:01 -0700, "Ashish Mathur"
wrote:

Hi,

Array enter this one (Ctrl+Shift+Enter)

IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$ 10,ROW($A$1:$A$7)),ROW(1:1)),2)),"",INDEX($A$1:$B$ 7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)),ROW(1:1 )),2))

A1:A7 houses the SKU no and B1:B7 houses the LoC no. A10 houses the SKU
against which you want the value.

Regards,

Ashish Mathur


OK, I see what's happening here. Your formula needs to be copy/dragged down to
obtain the various instances. That was not initially clear to me.
--ron
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
Zero values in a log chart Joelle_Smith Charts and Charting in Excel 2 May 8th 23 03:42 AM
#N/A Values : Returned by Formulas vs Entered Manually monir Charts and Charting in Excel 8 July 7th 05 01:16 AM
How To Use Cells Without Values in a Formula Roger H. Excel Worksheet Functions 2 April 6th 05 01:01 AM
How sum values in column B using values in column A as the conditi oldgrayelf Excel Worksheet Functions 5 February 4th 05 09:03 PM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM


All times are GMT +1. The time now is 05:51 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"