Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default vlookup and multiple rowns that meet criteria

Hello,

I have a question about a vlookup. I have the below criteria

Supplier Phone Type Prefix Phone number
123 Cell 310 555-1111
123 Office 310 555-1212
123 "Blank" 310 555-1213

In another sheet, I have one supplier and want a column for each phone type.
My below formula won't work because it looks to be only doing a lookup on
the first record (123) it finds. What can I do to have it search for the
correct "Phone type"

=IF(VLOOKUP($B347,'Phone
Number'!$A:$G,5,FALSE)="Office",VLOOKUP($B347,'Pho ne Number'!$A:$G,6,FALSE)&"
"&VLOOKUP($B347,'Phone Number'!$A:$G,7,FALSE),"")

Any help is appreciated.

Jason
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default vlookup and multiple rowns that meet criteria


Are you saying that you want a LIST of all matches of "Office"
123 Office 310 555-1212
123 Office 310 555-1212
123 Office 310 555-1212
If so, use datafilterautofilterfilter on type for officecopy/paste.
Record a macro to do it
If desired, send your file to my address below along with this msg and
a clear explanation of what you want and before/after examples.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jason" wrote in message
...
Hello,

I have a question about a vlookup. I have the below criteria

Supplier Phone Type Prefix Phone number
123 Cell 310 555-1111
123 Office 310 555-1212
123 "Blank" 310 555-1213

In another sheet, I have one supplier and want a column for each phone
type.
My below formula won't work because it looks to be only doing a lookup on
the first record (123) it finds. What can I do to have it search for the
correct "Phone type"

=IF(VLOOKUP($B347,'Phone
Number'!$A:$G,5,FALSE)="Office",VLOOKUP($B347,'Pho ne
Number'!$A:$G,6,FALSE)&"
"&VLOOKUP($B347,'Phone Number'!$A:$G,7,FALSE),"")

Any help is appreciated.

Jason


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default vlookup and multiple rowns that meet criteria

Hi Don,

Not exactly... I have another sheet, that has a lookup for a row with
supplier 123 and column headers for Cell, Office, and "Blank" on the same
row. When I setup the below lookup with text for Cell, Office, "Blank"
respectively, I get a false return value for my "office" lookup because it
finds the first Supplier 123 with "Cell" type. I'd like my lookup to ignore
the first 123 and populate my return value with the "Office" phone number
combo.

Any help is appreciated.

Jason

"Don Guillett" wrote:


Are you saying that you want a LIST of all matches of "Office"
123 Office 310 555-1212
123 Office 310 555-1212
123 Office 310 555-1212
If so, use datafilterautofilterfilter on type for officecopy/paste.
Record a macro to do it
If desired, send your file to my address below along with this msg and
a clear explanation of what you want and before/after examples.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jason" wrote in message
...
Hello,

I have a question about a vlookup. I have the below criteria

Supplier Phone Type Prefix Phone number
123 Cell 310 555-1111
123 Office 310 555-1212
123 "Blank" 310 555-1213

In another sheet, I have one supplier and want a column for each phone
type.
My below formula won't work because it looks to be only doing a lookup on
the first record (123) it finds. What can I do to have it search for the
correct "Phone type"

=IF(VLOOKUP($B347,'Phone
Number'!$A:$G,5,FALSE)="Office",VLOOKUP($B347,'Pho ne
Number'!$A:$G,6,FALSE)&"
"&VLOOKUP($B347,'Phone Number'!$A:$G,7,FALSE),"")

Any help is appreciated.

Jason



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default vlookup and multiple rowns that meet criteria

Hard to envision without seeing before/after. As I said,
If desired, send your file to my address below along with this msg and
a clear explanation of what you want and before/after examples.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jason" wrote in message
...
Hi Don,

Not exactly... I have another sheet, that has a lookup for a row with
supplier 123 and column headers for Cell, Office, and "Blank" on the same
row. When I setup the below lookup with text for Cell, Office, "Blank"
respectively, I get a false return value for my "office" lookup because it
finds the first Supplier 123 with "Cell" type. I'd like my lookup to
ignore
the first 123 and populate my return value with the "Office" phone number
combo.

Any help is appreciated.

Jason

"Don Guillett" wrote:


Are you saying that you want a LIST of all matches of "Office"
123 Office 310 555-1212
123 Office 310 555-1212
123 Office 310 555-1212
If so, use datafilterautofilterfilter on type for officecopy/paste.
Record a macro to do it
If desired, send your file to my address below along with this msg
and
a clear explanation of what you want and before/after examples.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jason" wrote in message
...
Hello,

I have a question about a vlookup. I have the below criteria

Supplier Phone Type Prefix Phone number
123 Cell 310 555-1111
123 Office 310 555-1212
123 "Blank" 310 555-1213

In another sheet, I have one supplier and want a column for each phone
type.
My below formula won't work because it looks to be only doing a lookup
on
the first record (123) it finds. What can I do to have it search for
the
correct "Phone type"

=IF(VLOOKUP($B347,'Phone
Number'!$A:$G,5,FALSE)="Office",VLOOKUP($B347,'Pho ne
Number'!$A:$G,6,FALSE)&"
"&VLOOKUP($B347,'Phone Number'!$A:$G,7,FALSE),"")

Any help is appreciated.

Jason




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
Counting rows that meet multiple criteria sabow71 Excel Worksheet Functions 5 April 23rd 09 04:50 PM
Counting rows that meet multiple criteria sabow71 Excel Worksheet Functions 0 April 22nd 09 09:20 PM
How do I count the number of cells that meet multiple criteria? Dianna_P Excel Worksheet Functions 7 November 25th 08 05:00 PM
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
Vlookup when have 2 or more criteria to meet Angie Excel Worksheet Functions 5 May 15th 08 10:15 PM


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