+ Reply to Thread
Results 1 to 6 of 6

If / Or statement

  1. #1
    Annabelle
    Guest

    If / Or statement

    This formula works adds At Printer to O7.

    =IF(W7>1/1/2001,"At Printer","")

    Having difficulty adding another possibility: If W7 >1/1/2001, "At
    Printer","" Or AH >1/1/2001, "In Stock", ""

    In english - if there is a date in W7, then insert "At Printer or if
    there is a date in AH7, then insert "In Stock".


    Can you assist?


  2. #2
    Forum Contributor
    Join Date
    08-28-2005
    Posts
    298

    If/Or statement

    hi

    try this

    =IF(W7>1/1/2005,"At Printer",IF(AH7>1/1/2001,"In Stock",""))

    -via135




    Quote Originally Posted by Annabelle
    This formula works adds At Printer to O7.

    =IF(W7>1/1/2001,"At Printer","")

    Having difficulty adding another possibility: If W7 >1/1/2001, "At
    Printer","" Or AH >1/1/2001, "In Stock", ""

    In english - if there is a date in W7, then insert "At Printer or if
    there is a date in AH7, then insert "In Stock".


    Can you assist?

  3. #3
    Bob Phillips
    Guest

    Re: If / Or statement

    Annabelle,

    Your original formula was flawed as it didn't properly test a date (put any
    date and see), but this caters for the amend

    =IF(W7>--"2001-01-01","At Printer",IF(AH7>--"2001-01-01","In Stock",""))


    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Annabelle" <[email protected]> wrote in message
    news:[email protected]...
    > This formula works adds At Printer to O7.
    >
    > =IF(W7>1/1/2001,"At Printer","")
    >
    > Having difficulty adding another possibility: If W7 >1/1/2001, "At
    > Printer","" Or AH >1/1/2001, "In Stock", ""
    >
    > In english - if there is a date in W7, then insert "At Printer or if
    > there is a date in AH7, then insert "In Stock".
    >
    >
    > Can you assist?
    >




  4. #4
    Dave Peterson
    Guest

    Re: If / Or statement

    Be careful.

    You may want:

    =if(w7>date(2001,1,1),"at printer","")

    Else you're comparing a division 1 divided by 1 divided by 2001.

    Maybe...

    =IF(AH7>DATE(2001,1,1),"In stock",IF(W7>DATE(2001,1,1),"At printer",""))

    But I'm not sure how your if/or should work.

    This is more like an And.

    Annabelle wrote:
    >
    > This formula works adds At Printer to O7.
    >
    > =IF(W7>1/1/2001,"At Printer","")
    >
    > Having difficulty adding another possibility: If W7 >1/1/2001, "At
    > Printer","" Or AH >1/1/2001, "In Stock", ""
    >
    > In english - if there is a date in W7, then insert "At Printer or if
    > there is a date in AH7, then insert "In Stock".
    >
    > Can you assist?


    --

    Dave Peterson

  5. #5
    Forum Contributor
    Join Date
    08-28-2005
    Posts
    298

    If/Or statement

    thks Dave & Bob!

    for correcting me!

    -via135


    Quote Originally Posted by Bob Phillips
    Annabelle,

    Your original formula was flawed as it didn't properly test a date (put any
    date and see), but this caters for the amend

    =IF(W7>--"2001-01-01","At Printer",IF(AH7>--"2001-01-01","In Stock",""))


    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Annabelle" <[email protected]> wrote in message
    news:[email protected]...
    > This formula works adds At Printer to O7.
    >
    > =IF(W7>1/1/2001,"At Printer","")
    >
    > Having difficulty adding another possibility: If W7 >1/1/2001, "At
    > Printer","" Or AH >1/1/2001, "In Stock", ""
    >
    > In english - if there is a date in W7, then insert "At Printer or if
    > there is a date in AH7, then insert "In Stock".
    >
    >
    > Can you assist?
    >

  6. #6
    Annabelle
    Guest

    Re: If / Or statement

    Thank you everyone. All of your suggestions/advice were quite helpful.

    As "At Printer was the first location stop and "In Stock" was the final
    destination, the solution I needed was =IF(AH7>DATE(2001,1,1),"In
    stock",IF(W7>DATE(2001,1,1),"At printer","")).


+ 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