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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"IF" Statements in Excel??? 3

Status
Not open for further replies.

RookieDBO

Technical User
Sep 20, 2001
83
CA
I've got 2 columns in Excel, each containing "if" statements. The "if" statements are the following.

Column 1 = (IF((BOOKED<SHIP),(SHIP-BOOKED),0))
Column 2 = (IF((SHIP<BOOKED),(BOOKED-SHIP),0))

They both work. I'd like to know if they can be combined in one cell???

Thanks,
RookieDBO
 
RookieDBO,

This should work...

=(IF((BOOKED<SHIP),(SHIP-BOOKED),(IF((SHIP<BOOKED),(BOOKED-SHIP),0))))


Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Hiya!

It looks like what you want is the difference between booked and ship but as a positive number?

If that is what you need then just say:

=ABS(BOOKED-SHIP)

If not, then post again with more details :)

pjm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top