+ Reply to Thread
Results 1 to 4 of 4

Difficult if statement need help

Hybrid View

  1. #1
    Registered User
    Join Date
    05-17-2005
    Posts
    2

    Difficult if statement need help

    Here is what I want to do, I have tried as much as I know but cant get it right.

    This simulates pretty much what I am doing.........

    If cell F3 is blank do not calculate anything. Otherwise calculate G3+I3-J3-K3. But if cell G3 is also blank calculate J3+I3-J3-K3 instead and vice versa on the calculations.

    Thanks NP

  2. #2
    Registered User
    Join Date
    02-21-2005
    Posts
    56
    try:

    =if(f3="","",if(g3="",j3+I3-j3-k3,G3+i3-j3-k3))

    Maybe it's a typo but j3+I3-j3-k3 can be simplified to I3-k3.

    Alastair

    If cell F3 is blank do not calculate anything. Otherwise calculate G3+I3-J3-K3. But if cell G3 is also blank calculate J3+I3-J3-K3 instead and vice versa on the calculations

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,379
    You might also try the ISBLANK worksheet function in your IF statements.

  4. #4
    Registered User
    Join Date
    02-21-2005
    Posts
    56
    eg

    =if(isblank(f3),"",if(isblank(g3),j3+I3-j3-k3,G3+i3-j3-k3))

    Alastair

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1