+ Reply to Thread
Results 1 to 6 of 6

How to create an If(Or formula for set of data?

  1. #1
    Registered User
    Join Date
    05-01-2008
    Posts
    5

    How to create an If(Or formula for set of data?

    I need help creating a formula for a worksheet I need for work. Listed below are the colums I will be working with.

    1. Insurance
    2. Initial Evaluation Date
    3. Re-registration Date
    4. Prescription Expiration Date

    This is what I need. If column "1" says either "Medicare" or "Medicaid", then add 30 days to the date that's in column "2" and reflect that new date in column "3" , but if column "1" dosen't say "Medicare" or Medicaid" then add 90 days to the date in column "2" and reflect that date in column "3".

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Please read the Forum Rules about thread titles, and then edit the title of your post to be descriptive of your problem.

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning cmitchell

    ...and welcome to the forum!!

    Assuming "column 1" is A, "column 2" is B etc ...
    =IF(OR(A1="medicaid",A1="medicare"),B1+30,B1+90)

    Just make sure that column C is formatted as dates.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    05-01-2008
    Posts
    5
    Thank you, Thank you for your assistance, the formula worked perfectly. I didn't know such a website existed I am very happy I found it. I will be sure to share this with my friends & co-workers.

  5. #5
    Registered User
    Join Date
    05-01-2008
    Posts
    5

    How to create an IF(or formula for set of data?

    Dominic,
    with the formula you sent me I realized that the 30 or 90 days added to the date in the formula needed to be 30 or 90 business days, I dont want Saturday or Sunday to be counted. Is that at all possible?

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi cmitchell

    Try this :

    =IF(OR(A1="medicaid",A1="medicare"),WORKDAY(B1,30),WORKDAY(B1,90))

    The Workday formula is only available in the Analysis Toolpak add-in, so this will need invoking first, or you'll get the #VALUE error.
    (Tools > Add-Ins, tick the Analysis Toolpak box and click OK).

    HTH

    DominicB

+ 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