+ Reply to Thread
Results 1 to 2 of 2

Help creating conditional formula

  1. #1
    Registered User
    Join Date
    09-02-2008
    Location
    London
    Posts
    73

    Help creating conditional formula

    Hi all

    I need a formula that will state something along the lines of :

    IF(C3 <>"", B3+4) and IF(D3 <>"", B3+2)

    But, if C3 and B3 are both not blank then b3 should plus 6....

    I'm trying to avoid the whole IF statement thing, but I can't think of how to get this to work even using IF's?!

    Later on I also need the second IF to be conditional in that it will recognise if D3 containds DP or DM, but for now just testing if they are not blank is enough.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Maybe:

    =B3+(AND(C3<>"",D3="")*4+AND(C3="",D3<>"")*2+AND(C3<>"",D3<>"")*6)

    or

    Shorter

    =B3+IF(AND(C3<>"",D3<>""),6,IF(C3<>"",4,2))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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