ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Use of wildcards in formulae (https://www.excelbanter.com/excel-discussion-misc-queries/255618-use-wildcards-formulae.html)

Colin Hayes

Use of wildcards in formulae
 

HI

I need a little advice.

I'm trying to say that if C6 starts with the letter 'C' , then put 'Yes'
, if not put 'No'

I'm using this formula :

=IF(C6="C*","Yes","No")

but it's not giving the correct responses. Can someone advise?

Thanks

John[_22_]

Use of wildcards in formulae
 
Hi Colin
Try this =IF(COUNTIF(C6,"C*")0,"Yes","No")
HTH
John
"Colin Hayes" wrote in message
...

HI

I need a little advice.

I'm trying to say that if C6 starts with the letter 'C' , then put 'Yes' , if
not put 'No'

I'm using this formula :

=IF(C6="C*","Yes","No")

but it's not giving the correct responses. Can someone advise?

Thanks



Colin Hayes

Use of wildcards in formulae
 
In article , John
writes
Hi Colin
Try this =IF(COUNTIF(C6,"C*")0,"Yes","No")
HTH
John


Hi John

Yes , that's fixed it.

Thanks for your help. Much appreciated.


Best Wishes


"Colin Hayes" wrote in message
...

HI

I need a little advice.

I'm trying to say that if C6 starts with the letter 'C' , then put 'Yes' , if
not put 'No'

I'm using this formula :

=IF(C6="C*","Yes","No")

but it's not giving the correct responses. Can someone advise?

Thanks




David Biddulph[_2_]

Use of wildcards in formulae
 
=IF(LEFT(C6)="C","Yes","No")
--
David Biddulph


Colin Hayes wrote:
HI

I need a little advice.

I'm trying to say that if C6 starts with the letter 'C' , then put
'Yes' , if not put 'No'

I'm using this formula :

=IF(C6="C*","Yes","No")

but it's not giving the correct responses. Can someone advise?

Thanks




John[_22_]

Use of wildcards in formulae
 
You're welcome .
Regards
John
"Colin Hayes" wrote in message
...
In article , John
writes
Hi Colin
Try this =IF(COUNTIF(C6,"C*")0,"Yes","No")
HTH
John


Hi John

Yes , that's fixed it.

Thanks for your help. Much appreciated.


Best Wishes


"Colin Hayes" wrote in message
...

HI

I need a little advice.

I'm trying to say that if C6 starts with the letter 'C' , then put 'Yes' ,
if
not put 'No'

I'm using this formula :

=IF(C6="C*","Yes","No")

but it's not giving the correct responses. Can someone advise?

Thanks






All times are GMT +1. The time now is 03:30 PM.

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