Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PW PW is offline
external usenet poster
 
Posts: 9
Default match values in two column and return value in

I want to look in two columns. I want to look in the first column for a cell
that matches the data in another cell. And with that value, I want to find a
blank value in the second column. Once it finds the row with this value, I
want to return the value in column G of this row. Example:

Col A Col B Col G
TBD 1 20000
TBD 1 X (This is where I want to look for the
value TBD 1
in column A and blank in Col B, so
it returns
the value 20000 from column G)
TBD 2 10000
TBD 2 X

Can you help with a formula?

Thank You,

PW
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default match values in two column and return value in

Is the item you're looking for always the 1st item of that group? That's how
it looks in your posted sample. If that's the case try this:

=INDEX(G2:G10,MATCH("TBD 1",A2:A10,0))

Another possibility:

=SUMPRODUCT(--(A2:A10="TBD 1"),--(B2:B10=""),G2:G10)


--
Biff
Microsoft Excel MVP


"PW" wrote in message
...
I want to look in two columns. I want to look in the first column for a
cell
that matches the data in another cell. And with that value, I want to
find a
blank value in the second column. Once it finds the row with this value,
I
want to return the value in column G of this row. Example:

Col A Col B Col G
TBD 1 20000
TBD 1 X (This is where I want to look for the
value TBD 1
in column A and blank in Col B, so
it returns
the value 20000 from column G)
TBD 2 10000
TBD 2 X

Can you help with a formula?

Thank You,

PW



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PW PW is offline
external usenet poster
 
Posts: 9
Default match values in two column and return value in

It's not always the first item. However, I did get it to work with INDEX and
MATCH.
Thank You!

PW


"T. Valko" wrote:

Is the item you're looking for always the 1st item of that group? That's how
it looks in your posted sample. If that's the case try this:

=INDEX(G2:G10,MATCH("TBD 1",A2:A10,0))

Another possibility:

=SUMPRODUCT(--(A2:A10="TBD 1"),--(B2:B10=""),G2:G10)


--
Biff
Microsoft Excel MVP


"PW" wrote in message
...
I want to look in two columns. I want to look in the first column for a
cell
that matches the data in another cell. And with that value, I want to
find a
blank value in the second column. Once it finds the row with this value,
I
want to return the value in column G of this row. Example:

Col A Col B Col G
TBD 1 20000
TBD 1 X (This is where I want to look for the
value TBD 1
in column A and blank in Col B, so
it returns
the value 20000 from column G)
TBD 2 10000
TBD 2 X

Can you help with a formula?

Thank You,

PW




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default match values in two column and return value in

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"PW" wrote in message
...
It's not always the first item. However, I did get it to work with INDEX
and
MATCH.
Thank You!

PW


"T. Valko" wrote:

Is the item you're looking for always the 1st item of that group? That's
how
it looks in your posted sample. If that's the case try this:

=INDEX(G2:G10,MATCH("TBD 1",A2:A10,0))

Another possibility:

=SUMPRODUCT(--(A2:A10="TBD 1"),--(B2:B10=""),G2:G10)


--
Biff
Microsoft Excel MVP


"PW" wrote in message
...
I want to look in two columns. I want to look in the first column for a
cell
that matches the data in another cell. And with that value, I want to
find a
blank value in the second column. Once it finds the row with this
value,
I
want to return the value in column G of this row. Example:

Col A Col B Col G
TBD 1 20000
TBD 1 X (This is where I want to look for
the
value TBD 1
in column A and blank in Col B,
so
it returns
the value 20000 from column G)
TBD 2 10000
TBD 2 X

Can you help with a formula?

Thank You,

PW






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
Search a column for values, return a value from adj column Adam Excel Worksheet Functions 2 June 18th 08 08:35 AM
Search, Match, And return corresponding column value sayerplayer Excel Worksheet Functions 0 February 13th 08 04:15 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Match a cell to something in a column and return a YES Kathy Excel Worksheet Functions 1 October 26th 07 11:15 PM
Index? Match? Function to sort and return value fr diff column in Smurfette Excel Worksheet Functions 6 April 27th 06 05:46 PM


All times are GMT +1. The time now is 08:25 PM.

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"