Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
zangief
 
Posts: n/a
Default Return value of the cell to the right...


I have been using the function

=IF(COUNTIF(H:H,"Rory")0,I21,"")

It will return the value of cell of I21 if the name "Rory" is in column
H. I need to know if I can so that instead of returning I21, it can
return the value of the cell to the right of the cell that "Rory" is
in.

Thanks if you can help.


--
zangief
------------------------------------------------------------------------
zangief's Profile: http://www.excelforum.com/member.php...o&userid=27560
View this thread: http://www.excelforum.com/showthread...hreadid=471000

  #2   Report Post  
duane
 
Posts: n/a
Default


Note you have to define a row range to find rory in

=offset(i1,match("Rory",H1:h10000,0)-1,0)

I assume you are looking for content in column i


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=471000

  #3   Report Post  
zangief
 
Posts: n/a
Default


it doesn't seem to be working

I think the offset function is what I need though


--
zangief
------------------------------------------------------------------------
zangief's Profile: http://www.excelforum.com/member.php...o&userid=27560
View this thread: http://www.excelforum.com/showthread...hreadid=471000

  #4   Report Post  
Rowan
 
Posts: n/a
Default

How about:

=VLOOKUP("Rory",H:I,2,0)

Regards
Rowan

zangief wrote:
I have been using the function

=IF(COUNTIF(H:H,"Rory")0,I21,"")

It will return the value of cell of I21 if the name "Rory" is in column
H. I need to know if I can so that instead of returning I21, it can
return the value of the cell to the right of the cell that "Rory" is
in.

Thanks if you can help.


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 cell contents as the result of usiing "small" KFEagle Excel Worksheet Functions 1 September 10th 05 08:33 PM
use IF to return a truly blank cell cwinters Excel Discussion (Misc queries) 5 August 6th 05 12:09 AM
Formula to return the name of a cell Adresmith Excel Discussion (Misc queries) 2 June 14th 05 07:31 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
formula to return the value of a cell based on a looked up true reference sarah Excel Worksheet Functions 2 February 2nd 05 08:15 PM


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