ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   modified if equation. (https://www.excelbanter.com/excel-worksheet-functions/159089-modified-if-equation.html)

SteveDB1

modified if equation.
 
Hi all.
I'm interested in doing an if equation that will have a statement inlcuded
in my false answer.
I.e.,
=if(a1=e1,"ok","Amount short by: " a1-e1)
And for the false, my answer would become:
Amount short by: ....
Is it possible to do this?
I've tried with the above form and of course it doesn't work.
Thanks for your responses.


Dave

modified if equation.
 
Perhaps:-

=IF(A1=E1,"OK","Amount short by: " & A1-E1)

Mike

"SteveDB1" wrote:

Hi all.
I'm interested in doing an if equation that will have a statement inlcuded
in my false answer.
I.e.,
=if(a1=e1,"ok","Amount short by: " a1-e1)
And for the false, my answer would become:
Amount short by: ....
Is it possible to do this?
I've tried with the above form and of course it doesn't work.
Thanks for your responses.


Pete_UK

modified if equation.
 
Try this:

=if(a1=e1,"ok","Amount short by: " & a1-e1)

Hope this helps.

Pete

On Sep 20, 5:06 pm, SteveDB1
wrote:
Hi all.
I'm interested in doing an if equation that will have a statement inlcuded
in my false answer.
I.e.,
=if(a1=e1,"ok","Amount short by: " a1-e1)
And for the false, my answer would become:
Amount short by: ....
Is it possible to do this?
I've tried with the above form and of course it doesn't work.
Thanks for your responses.




SteveDB1

modified if equation.
 
doh!
why I didn't think about that, I'll never know.
I think that I once tried &&, and it gave me an error....
Thanks guys.
It works great.
Have a great day, evening, and weekend.


"Pete_UK" wrote:

Try this:

=if(a1=e1,"ok","Amount short by: " & a1-e1)

Hope this helps.

Pete

On Sep 20, 5:06 pm, SteveDB1
wrote:
Hi all.
I'm interested in doing an if equation that will have a statement inlcuded
in my false answer.
I.e.,
=if(a1=e1,"ok","Amount short by: " a1-e1)
And for the false, my answer would become:
Amount short by: ....
Is it possible to do this?
I've tried with the above form and of course it doesn't work.
Thanks for your responses.





Pete_UK

modified if equation.
 
Yeah, cheers Steve.

Pete

On Sep 20, 5:48 pm, SteveDB1
wrote:
doh!
why I didn't think about that, I'll never know.
I think that I once tried &&, and it gave me an error....
Thanks guys.
It works great.
Have a great day, evening, and weekend.



"Pete_UK" wrote:
Try this:


=if(a1=e1,"ok","Amount short by: " & a1-e1)


Hope this helps.


Pete


On Sep 20, 5:06 pm, SteveDB1
wrote:
Hi all.
I'm interested in doing an if equation that will have a statement inlcuded
in my false answer.
I.e.,
=if(a1=e1,"ok","Amount short by: " a1-e1)
And for the false, my answer would become:
Amount short by: ....
Is it possible to do this?
I've tried with the above form and of course it doesn't work.
Thanks for your responses.- Hide quoted text -


- Show quoted text -





All times are GMT +1. The time now is 05:34 AM.

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