+ Reply to Thread
Results 1 to 3 of 3

Multiple If Statement

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    424

    Multiple If Statement

    I am having problems with this and I don't usually have problems with if
    statements.

    I want to sum that will say -

    if b8 ="Sat" then return i7
    if b8 = "Sun" then return i7
    if b8 <> "Sat" or "Sun" and j8 >0 then i7+j8
    if b8 <> "Sat" or "Sun" and j8 = 0 then 0

    Many thanks for any help.
    Last edited by NBVC; 02-28-2012 at 12:24 PM.

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

    Re: Multiple If Statement

    Assuming J8 can be 0 or greater .... Try:

    =IF(OR(B8={"Sat","Sun"}),I7,IF(J8>0,I7+J8,0))
    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.

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    424

    Re: Multiple If Statement

    Brilliant, many thanks.

+ 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