ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Formula w/Lists (https://www.excelbanter.com/excel-worksheet-functions/248142-conditional-formula-w-lists.html)

ncjelj

Conditional Formula w/Lists
 
I'm trying to write a conditional formula that is reading the result of a
list function. I can't seem to get it to work for text - I'm using quotes
around the text - for example:
C2 C3
Daily =if(c2="Daily",1,0)

It's not working using this formula.
Any ideas??? HELP!
Thanks.

Jacob Skaria

Conditional Formula w/Lists
 
Check for any space or other characters such as 'Daily ' in cell C2. If
there are spaces TRIM() will help.

=IF(TRIM(C2)="DAILY",1,0)



If this post helps click Yes
---------------
Jacob Skaria


"ncjelj" wrote:

I'm trying to write a conditional formula that is reading the result of a
list function. I can't seem to get it to work for text - I'm using quotes
around the text - for example:
C2 C3
Daily =if(c2="Daily",1,0)

It's not working using this formula.
Any ideas??? HELP!
Thanks.


T. Valko

Conditional Formula w/Lists
 
You probably have unseen whitespace characters in the cell.

Try this...

=COUNTIF(C2,"*Daily*")

--
Biff
Microsoft Excel MVP


"ncjelj" wrote in message
...
I'm trying to write a conditional formula that is reading the result of a
list function. I can't seem to get it to work for text - I'm using quotes
around the text - for example:
C2 C3
Daily =if(c2="Daily",1,0)

It's not working using this formula.
Any ideas??? HELP!
Thanks.





All times are GMT +1. The time now is 10:17 AM.

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