Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Return info based on 1 criteria

Hi guys, small query. Is there a way to return every occurence of a part
number from looking at one cell ... e.g. Cell C1 contains the one cell that I
want to use and cells D1:D4 contain the result I want to see, gained from the
data in A1:B6 .... so I want to be able to return the info from A1:B6 based
on C1 and input the data into cells D1:D4.

A B C D
1 Bob Car Bob Car
2 Bob Bus Bus
3 Bob Moped Moped
4 Mike Car Boat
5 Mike Bus
6 Bob Boat
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Return info based on 1 criteria

Hi,

Base on yor posted data this works. Out it in D1 and drag down to d4.

=VLOOKUP($C$1,$A1:$B$6,2,FALSE)

Mike

"John Moore" wrote:

Hi guys, small query. Is there a way to return every occurence of a part
number from looking at one cell ... e.g. Cell C1 contains the one cell that I
want to use and cells D1:D4 contain the result I want to see, gained from the
data in A1:B6 .... so I want to be able to return the info from A1:B6 based
on C1 and input the data into cells D1:D4.

A B C D
1 Bob Car Bob Car
2 Bob Bus Bus
3 Bob Moped Moped
4 Mike Car Boat
5 Mike Bus
6 Bob Boat

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Return info based on 1 criteria

Hi Mike ,,, this doesn't return what I'm looking for. I am looking for the
results in D1:D4 to show Car, Bus , Moped and Boat respectively based on cell
C1 being "Bob" using the range A1:B6.

"Mike H" wrote:

Hi,

Base on yor posted data this works. Out it in D1 and drag down to d4.

=VLOOKUP($C$1,$A1:$B$6,2,FALSE)

Mike

"John Moore" wrote:

Hi guys, small query. Is there a way to return every occurence of a part
number from looking at one cell ... e.g. Cell C1 contains the one cell that I
want to use and cells D1:D4 contain the result I want to see, gained from the
data in A1:B6 .... so I want to be able to return the info from A1:B6 based
on C1 and input the data into cells D1:D4.

A B C D
1 Bob Car Bob Car
2 Bob Bus Bus
3 Bob Moped Moped
4 Mike Car Boat
5 Mike Bus
6 Bob Boat

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Return info based on 1 criteria

What does it show in D1 - D4 for you? Because on my Machine it returns this

ColA Col B Col C Col D
Bob Car Bob Car
Bob Bus Bus
Bob Moped Moped
Mike Car Boat
Mike Bus
Bob Boat

Mike
"John Moore" wrote:

Hi Mike ,,, this doesn't return what I'm looking for. I am looking for the
results in D1:D4 to show Car, Bus , Moped and Boat respectively based on cell
C1 being "Bob" using the range A1:B6.

"Mike H" wrote:

Hi,

Base on yor posted data this works. Out it in D1 and drag down to d4.

=VLOOKUP($C$1,$A1:$B$6,2,FALSE)

Mike

"John Moore" wrote:

Hi guys, small query. Is there a way to return every occurence of a part
number from looking at one cell ... e.g. Cell C1 contains the one cell that I
want to use and cells D1:D4 contain the result I want to see, gained from the
data in A1:B6 .... so I want to be able to return the info from A1:B6 based
on C1 and input the data into cells D1:D4.

A B C D
1 Bob Car Bob Car
2 Bob Bus Bus
3 Bob Moped Moped
4 Mike Car Boat
5 Mike Bus
6 Bob Boat

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Return info based on 1 criteria

It's ok Mike ,, I found a solution using SMALL, INDEX and MATCH .... thanks
anyway

"John Moore" wrote:

Hi guys, small query. Is there a way to return every occurence of a part
number from looking at one cell ... e.g. Cell C1 contains the one cell that I
want to use and cells D1:D4 contain the result I want to see, gained from the
data in A1:B6 .... so I want to be able to return the info from A1:B6 based
on C1 and input the data into cells D1:D4.

A B C D
1 Bob Car Bob Car
2 Bob Bus Bus
3 Bob Moped Moped
4 Mike Car Boat
5 Mike Bus
6 Bob Boat



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Return info based on 1 criteria

Mike, it seems that this will work, but only if the data A1:B6 begins with
Bob , if I try to do Mike it returns Car only. But I have a solution that
works well enough using the INDEX and MATCH functions.

"Mike H" wrote:

What does it show in D1 - D4 for you? Because on my Machine it returns this

ColA Col B Col C Col D
Bob Car Bob Car
Bob Bus Bus
Bob Moped Moped
Mike Car Boat
Mike Bus
Bob Boat

Mike
"John Moore" wrote:

Hi Mike ,,, this doesn't return what I'm looking for. I am looking for the
results in D1:D4 to show Car, Bus , Moped and Boat respectively based on cell
C1 being "Bob" using the range A1:B6.

"Mike H" wrote:

Hi,

Base on yor posted data this works. Out it in D1 and drag down to d4.

=VLOOKUP($C$1,$A1:$B$6,2,FALSE)

Mike

"John Moore" wrote:

Hi guys, small query. Is there a way to return every occurence of a part
number from looking at one cell ... e.g. Cell C1 contains the one cell that I
want to use and cells D1:D4 contain the result I want to see, gained from the
data in A1:B6 .... so I want to be able to return the info from A1:B6 based
on C1 and input the data into cells D1:D4.

A B C D
1 Bob Car Bob Car
2 Bob Bus Bus
3 Bob Moped Moped
4 Mike Car Boat
5 Mike Bus
6 Bob Boat

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
Return a value based on two criteria cdavidson Excel Discussion (Misc queries) 1 April 5th 07 07:35 PM
Pulling info from other spreadsheets based on a set of criteria... watchtower Excel Worksheet Functions 1 February 3rd 07 02:32 AM
Return value from list based on criteria [email protected] Excel Worksheet Functions 2 October 3rd 06 10:44 AM
Return info based on Date Range kermitforney Excel Worksheet Functions 3 July 11th 06 07:59 PM
return value based on two criteria blopreste3180 Excel Worksheet Functions 3 January 16th 06 02:15 PM


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