Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel formulas in 123 1

Status
Not open for further replies.

burnout421

Technical User
Jun 8, 2007
5
GB
I am using this formula in Excel:
=IF(OR(F5="",H5="",I5=""),"",F5+H5-I5)
This means that unless all of F5, H5 and I5 are occupied, no result will be shown. If I open the file in 123, the formula is converted as follows:
@IF(((F5="")#OR#(H5="")#OR#(I5="")),"",F5+H5-I5
The result is not the same though. I am not experienced and would appreciate help with a formula that will produce the same results as the excel formula.

 
@IF((F5="")#OR#(H5="")#OR#(I5=""),"",F5+H5-I5)

Here is the version that is equivalent.
You have some displaced perenthesis in your version.
Does this help?
 
Thanks for your reply crazybird. The problem seems to be that "" can mean that the cell is blank or contains a zero.
That being the case, if any cell contains a zero no result is shown. I want this to work only for blank cells. Is there a way round this?

 
OK.
How about this?:

@IF(@isempty(F5)#OR#@isempty(H5)#OR#@isempty(I5),"",F5+H5-I5)
 
Bingo! Thanks very much crazybird - just what i was looking for.
 
thec here:
I am new aboard, so please pardon any errors in protocol or knowledge.
I am trying desperately to employ a formula within an accounting table.
There is 'today's date'..."fiscal start date'...'fiscal end date'...'anniversary date for an increment'...and the contract revision date'.
This is way beyond my experience in Lotus, so I can't figure out the formula to express "If This, And That, Then these"...
Please...can anyone help.....
Thanks THEc

 
@if works this way:

@if([condition];[do this];[else do that])

[condition] must be either true (not equal to zero) or false (zero).

example using AND:

@if(A1=B1#and#C1=D1;A4;0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top