ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Return value of the cell to the right... (https://www.excelbanter.com/excel-worksheet-functions/47350-return-value-cell-right.html)

zangief

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


duane


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


zangief


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


Rowan

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.




All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com