ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   L14=total, if P14="text", L14=0 (https://www.excelbanter.com/excel-programming/297252-l14%3Dtotal-if-p14%3D-text-l14%3D0.html)

sonar[_10_]

L14=total, if P14="text", L14=0
 
Hi,

I need to understand how to manipulate text in formulas.

My problem is that if I have an...

amount biger than zero in (L14) whose formula is =+J14-I14-K14,

and

should I then type in text in P14, L14 will then return a zero, instea
of calculating =+J14-I14-K14 due to text typed in P14.

The manipulation will have to occur in L14 (my totals column for th
day)

eg. L14 calculates total (=+J14-I14-K14), but if I type "any text" i
P14, L14 = 0

Help will be most appreciated

--
Message posted from http://www.ExcelForum.com


pikus

L14=total, if P14="text", L14=0
 
In L14:

=IF(P14<””,0,J14-I14-K14)

- Piku

--
Message posted from http://www.ExcelForum.com


pikus

L14=total, if P14="text", L14=0
 
or if you specifically care about text to the EXCLUSION of numeric dat
in P14 then:

=IF(ISTEXT(N13),0,J14-I14-K14)

- Piku

--
Message posted from http://www.ExcelForum.com


sonar[_12_]

L14=total, if P14="text", L14=0
 
Hi

thanks for that, just want to ask

what is the (N13) ?

also interested in what the <”” mean. I was under the impression tha
text needed a special formula or something

--
Message posted from http://www.ExcelForum.com


pikus

L14=total, if P14="text", L14=0
 
Sorry. That should have been:

=IF(ISTEXT(N14),0,J14-I14-K14)

As for [=IF(P14<””], < means 'not equal to' and "" is an empt
string. So all together it means "if cell P14 is not empty." wha
comes after the first comma is what happens if the "IF" statement i
TRUE and what comes after the second comma is what gets executed if th
statement is FALSE.

SO, If P14 is not empty then this cell's value equals 0, otherwis
subtract the values of cells I14 and K14 from the value of cell J14.

That make sense? - Piku

--
Message posted from http://www.ExcelForum.com


sonar[_11_]

L14=total, if P14="text", L14=0
 
Thanks for the help

--
Message posted from http://www.ExcelForum.com


pikus

L14=total, if P14="text", L14=0
 
NP - Piku

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 02:33 AM.

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