ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Please help! (https://www.excelbanter.com/excel-worksheet-functions/139775-please-help.html)

Jen1170

Please help!
 
I am trying to find help for a formula if possible. I have 2 columns (A, B)
and several rows beneath. Column A is all names. In column B there will be
an "X" next to one name. How can I create a formula to give me the name from
column A when there is an X in column B? Hope that made sense! Thanks.

Bernie Deitrick

Please help!
 
Jen,

=INDEX(A:A,MATCH("X",B:B,FALSE))

HTH,
Bernie
MS Excel MVP


"Jen1170" wrote in message
...
I am trying to find help for a formula if possible. I have 2 columns (A, B)
and several rows beneath. Column A is all names. In column B there will be
an "X" next to one name. How can I create a formula to give me the name from
column A when there is an X in column B? Hope that made sense! Thanks.




Ron Coderre

Please help!
 
Try one of these:

=LOOKUP("X",B2:B10,A2:A10)
or
=IF(COUNTIF(B2:B10,"X"),LOOKUP("X",B2:B10,A2:A10), "")

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Jen1170" wrote:

I am trying to find help for a formula if possible. I have 2 columns (A, B)
and several rows beneath. Column A is all names. In column B there will be
an "X" next to one name. How can I create a formula to give me the name from
column A when there is an X in column B? Hope that made sense! Thanks.


Teethless mama

Please help!
 
In C2: =IF(B2="x",A2,"")
Copy down


"Jen1170" wrote:

I am trying to find help for a formula if possible. I have 2 columns (A, B)
and several rows beneath. Column A is all names. In column B there will be
an "X" next to one name. How can I create a formula to give me the name from
column A when there is an X in column B? Hope that made sense! Thanks.



All times are GMT +1. The time now is 01:28 PM.

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