#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default vlookup glitch

Using po numbers in column A produces the serial numbers in column B. The
issue is the PO numbers are the same but the serial numbers are unique. The
vlookup function is only pulling the first po lookup line for the serial
number. The results for serial numbers are all the same and not unique
numbers.
Column A1 to A10 same po 456890 - Column B B1-B10 serial numbers are all
unique. Results for Column B is always B1. The serial numbers b2 to b10 are
never pulled.








































































  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default vlookup glitch

That is how VLOOKUP works, it's not really a glitch. Things like these are
better done using a filter, filtering on a PO number will give you all
instances of that number and the adjacent serial numbers. You can also get
it by using a fairly complicated array formula and copying that formula
down, example here

http://nwexcelsolutions.com/advanced_function_page.htm


number 6

but as I stated earlier it is better to use a filter


--
Regards,

Peo Sjoblom



"Marlene" wrote in message
...
Using po numbers in column A produces the serial numbers in column B. The
issue is the PO numbers are the same but the serial numbers are unique.
The
vlookup function is only pulling the first po lookup line for the serial
number. The results for serial numbers are all the same and not unique
numbers.
Column A1 to A10 same po 456890 - Column B B1-B10 serial numbers are all
unique. Results for Column B is always B1. The serial numbers b2 to b10
are
never pulled.










































































  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default vlookup glitch

Thanks! I will try some of the formulas.


"Peo Sjoblom" wrote:

That is how VLOOKUP works, it's not really a glitch. Things like these are
better done using a filter, filtering on a PO number will give you all
instances of that number and the adjacent serial numbers. You can also get
it by using a fairly complicated array formula and copying that formula
down, example here

http://nwexcelsolutions.com/advanced_function_page.htm


number 6

but as I stated earlier it is better to use a filter


--
Regards,

Peo Sjoblom



"Marlene" wrote in message
...
Using po numbers in column A produces the serial numbers in column B. The
issue is the PO numbers are the same but the serial numbers are unique.
The
vlookup function is only pulling the first po lookup line for the serial
number. The results for serial numbers are all the same and not unique
numbers.
Column A1 to A10 same po 456890 - Column B B1-B10 serial numbers are all
unique. Results for Column B is always B1. The serial numbers b2 to b10
are
never pulled.











































































  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default vlookup glitch

Try this:

"PO" & "SN" are defined name ranges
C2: holds criteria

In D2:
=IF(ISERR(SMALL(IF(PO=$C$2,ROW(INDIRECT("1:"&ROWS( PO)))),ROWS($1:1))),"",INDEX(SN,SMALL(IF(PO=$C$2,R OW(INDIRECT("1:"&ROWS(PO)))),ROWS($1:1))))

ctrl+shift+enter, not just enter
copy down


"Marlene" wrote:

Using po numbers in column A produces the serial numbers in column B. The
issue is the PO numbers are the same but the serial numbers are unique. The
vlookup function is only pulling the first po lookup line for the serial
number. The results for serial numbers are all the same and not unique
numbers.
Column A1 to A10 same po 456890 - Column B B1-B10 serial numbers are all
unique. Results for Column B is always B1. The serial numbers b2 to b10 are
never pulled.








































































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
Another odd VBA glitch in 2007 teepee Excel Discussion (Misc queries) 4 April 1st 07 09:16 PM
Formula Calculation Glitch? Jake Excel Discussion (Misc queries) 3 September 16th 06 05:15 PM
Pivot Table Glitch? [email protected] Excel Discussion (Misc queries) 2 September 12th 06 06:57 PM
Excel function glitch? bdog Excel Worksheet Functions 1 April 11th 06 06:01 PM
EXCELL 2002 Glitch???? Gabriel20783 Excel Discussion (Misc queries) 1 November 29th 04 08:55 PM


All times are GMT +1. The time now is 04:51 PM.

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"