#1   Report Post  
Posted to microsoft.public.excel.misc
ceemo
 
Posts: n/a
Default finding value


i have a sheet containing daes in column a, a name in column b and
another name in column c


no column b name will be reeated for each date.

i want to get the name in column c by matching the name in column b and
date in column a


a b c
1/2/6 bob fizz
1/2/6 pete fizz
2/2/6 bob pepsi
2/2/6 steff orange
2/2/6 pete pepsi
3/2/6 bob lemon


from the example i want to use the name bob and the date 2/2/6 to get
orange.


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=534329

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default finding value

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100),0))
(one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))

ceemo wrote:

i have a sheet containing daes in column a, a name in column b and
another name in column c

no column b name will be reeated for each date.

i want to get the name in column c by matching the name in column b and
date in column a

a b c
1/2/6 bob fizz
1/2/6 pete fizz
2/2/6 bob pepsi
2/2/6 steff orange
2/2/6 pete pepsi
3/2/6 bob lemon

from the example i want to use the name bob and the date 2/2/6 to get
orange.

--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=534329


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
ceemo
 
Posts: n/a
Default finding value


thank you for your help


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=534329

  #4   Report Post  
Posted to microsoft.public.excel.misc
ceemo
 
Posts: n/a
Default finding value


i couldnt get this to work


=index(othersheet!$c$1:$c$100,match(1,(a2=othershe et!$a$1:$a$100)*(b2=othersheet
!$b$1:$b$100),0))

would it not be something similar to this

=index(othersheet!$c$1:$c$100,match(1,(othersheet! $a$1:$a$100="2/2/6")*(othersheet
!$b$1:$b$100="bob"),0))

?


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=534329

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default finding value

Is that 2/2/6 a date?

if yes and it means February 2, 2006, then maybe:

=index(othersheet!$c$1:$c$100,
match(1,(othersheet!$a$1:$a$100=date(2006,2,2))
*(othersheet!$b$1:$b$100="bob"),0))



ceemo wrote:

i couldnt get this to work

=index(othersheet!$c$1:$c$100,match(1,(a2=othershe et!$a$1:$a$100)*(b2=othersheet
!$b$1:$b$100),0))

would it not be something similar to this

=index(othersheet!$c$1:$c$100,match(1,(othersheet! $a$1:$a$100="2/2/6")*(othersheet
!$b$1:$b$100="bob"),0))

?

--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=534329


--

Dave Peterson
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
Finding combinations that add up to X mj6987 Excel Discussion (Misc queries) 3 April 7th 06 12:15 PM
Finding Asymptotes from a set of data in Excel WAYNEL Excel Worksheet Functions 1 January 7th 06 01:28 AM
Finding Asymptotes from a set of data in Excel WAYNEL Excel Discussion (Misc queries) 0 January 6th 06 10:48 PM
Finding Duplicate Names from Different Lists... PokerZan Excel Discussion (Misc queries) 1 July 8th 05 09:58 AM
Finding Median if a value = 1.. help! Greg Excel Worksheet Functions 2 February 13th 05 03:28 AM


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