ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula help... (https://www.excelbanter.com/excel-discussion-misc-queries/14255-formula-help.html)

Jambruins

Formula help...
 
In column A there are cells with team names in them like the following:
NYY
NYY
NYY
@OAK
@OAK
@OAK
BOS
BOS
BOS
@TEX
@TEX
@TEX

I would like column B to list all the team names without the @ symbol and
column H to list all the teams with the @ symbol. For the example I would
like column B to have
NYY
NYY
NYY
BOS
BOS
BOS



Bob Phillips

=COUNTIF(A:A,"@*")

and

=COUNTIF(A:A,"<@*")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jambruins" wrote in message
...
In column A there are cells with team names in them like the following:
NYY
NYY
NYY
@OAK
@OAK
@OAK
BOS
BOS
BOS
@TEX
@TEX
@TEX

I would like column B to list all the team names without the @ symbol and
column H to list all the teams with the @ symbol. For the example I would
like column B to have
NYY
NYY
NYY
BOS
BOS
BOS





Roger Govier

In column B
=IF(LEFT(A1)="@","",A1)
In column H
=IF(LEFT(A1)="@",A1,"")

--
Regards
Roger Govier
"Jambruins" wrote in message
...
In column A there are cells with team names in them like the following:
NYY
NYY
NYY
@OAK
@OAK
@OAK
BOS
BOS
BOS
@TEX
@TEX
@TEX

I would like column B to list all the team names without the @ symbol and
column H to list all the teams with the @ symbol. For the example I would
like column B to have
NYY
NYY
NYY
BOS
BOS
BOS





Jambruins

Roger, that is what I wanted but is there a way to have it get rid of the
blank cells at the same time? Right now it gives me
OAK
OAK
OAK



NYY
NYY
NYY

Is there a way to have the NYY move to right underneath the OAK? Thanks.

"Roger Govier" wrote:

In column B
=IF(LEFT(A1)="@","",A1)
In column H
=IF(LEFT(A1)="@",A1,"")

--
Regards
Roger Govier
"Jambruins" wrote in message
...
In column A there are cells with team names in them like the following:
NYY
NYY
NYY
@OAK
@OAK
@OAK
BOS
BOS
BOS
@TEX
@TEX
@TEX

I would like column B to list all the team names without the @ symbol and
column H to list all the teams with the @ symbol. For the example I would
like column B to have
NYY
NYY
NYY
BOS
BOS
BOS







All times are GMT +1. The time now is 12:11 PM.

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