ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If Function (https://www.excelbanter.com/excel-programming/288394-if-function.html)

Tom Donino

If Function
 
I am having trouble using the if function. I am trying to
have a cell(J4) return either the value of defined name
(newteamcost) or (old teamcost) depending on whether the
value in (b4) is O or N (Capital O or Capital N). Any
help would be appreciated.

Leo Heuser[_2_]

If Function
 
Tom

From your wording, I take it, that lower case
o or n are not allowed. If this holds, here's one
way to do it:

In J4:

=IF(EXACT(B4,"O"),newteamcost,IF(EXACT(B4,"N"),old teamcost,""))

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Tom Donino" skrev i en meddelelse
...
I am having trouble using the if function. I am trying to
have a cell(J4) return either the value of defined name
(newteamcost) or (old teamcost) depending on whether the
value in (b4) is O or N (Capital O or Capital N). Any
help would be appreciated.




No Name

If Function
 
Thanks for the reply but that is not working. I also
tried removing the (EXACT portion of eac and the end
parentheses but that is not working either.
-----Original Message-----
Tom

From your wording, I take it, that lower case
o or n are not allowed. If this holds, here's one
way to do it:

In J4:

=IF(EXACT(B4,"O"),newteamcost,IF(EXACT

(B4,"N"),oldteamcost,""))

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Tom Donino" skrev

i en meddelelse
...
I am having trouble using the if function. I am trying

to
have a cell(J4) return either the value of defined name
(newteamcost) or (old teamcost) depending on whether

the
value in (b4) is O or N (Capital O or Capital N). Any
help would be appreciated.



.


Leo Heuser[_2_]

If Function
 
What is not working?
Please specify.
What happens, when you enter the formula?

LeoH

skrev i en meddelelse
...
Thanks for the reply but that is not working. I also
tried removing the (EXACT portion of eac and the end
parentheses but that is not working either.
-----Original Message-----
Tom

From your wording, I take it, that lower case
o or n are not allowed. If this holds, here's one
way to do it:

In J4:

=IF(EXACT(B4,"O"),newteamcost,IF(EXACT

(B4,"N"),oldteamcost,""))

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Tom Donino" skrev

i en meddelelse
...
I am having trouble using the if function. I am trying

to
have a cell(J4) return either the value of defined name
(newteamcost) or (old teamcost) depending on whether

the
value in (b4) is O or N (Capital O or Capital N). Any
help would be appreciated.



.





All times are GMT +1. The time now is 12:01 AM.

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