ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Multi-Format IF Statement (https://www.excelbanter.com/excel-programming/399433-multi-format-if-statement.html)

JAD

Multi-Format IF Statement
 
I have multiple IF statement connected with the + sign in which the results
are either a number or a statement. An example of a statement with a text
string would be:
+IF(A36="na","not incl",0). When I try running the statement, it will not
show the text string. My first thought was that I couldn't mix number results
with text results. Is there a solution? Any help would be appreciated. Thank
You, JAD

JLGWhiz

Multi-Format IF Statement
 
Excel uses the equal [=] sign. Lotus used the [+]. change your + to = and
see if it works.

"JAD" wrote:

I have multiple IF statement connected with the + sign in which the results
are either a number or a statement. An example of a statement with a text
string would be:
+IF(A36="na","not incl",0). When I try running the statement, it will not
show the text string. My first thought was that I couldn't mix number results
with text results. Is there a solution? Any help would be appreciated. Thank
You, JAD


Bob Phillips

Multi-Format IF Statement
 
Try

=IF(A36="na","not incl",0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"JAD" wrote in message
...
I have multiple IF statement connected with the + sign in which the results
are either a number or a statement. An example of a statement with a text
string would be:
+IF(A36="na","not incl",0). When I try running the statement, it will not
show the text string. My first thought was that I couldn't mix number
results
with text results. Is there a solution? Any help would be appreciated.
Thank
You, JAD




Bob Umlas, Excel MVP

Multi-Format IF Statement
 
Without seeing what's in A36, my guess would be:
=IF(ISNA(A36),"not incl",0)
because if you see #N/A in A36, that's not the same as "na"

"JAD" wrote:

I have multiple IF statement connected with the + sign in which the results
are either a number or a statement. An example of a statement with a text
string would be:
+IF(A36="na","not incl",0). When I try running the statement, it will not
show the text string. My first thought was that I couldn't mix number results
with text results. Is there a solution? Any help would be appreciated. Thank
You, JAD



All times are GMT +1. The time now is 03:59 AM.

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