+ Reply to Thread
Results 1 to 2 of 2

Date based If Statement

  1. #1
    Registered User
    Join Date
    10-22-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010, 2013
    Posts
    37

    Date based If Statement

    Hi all,

    Simply I'm trying to get one cell to multiply by a certain number, and then another by a certain number, to which they are both added together.

    However, depending on the date of another cell, the value of which they are multiplied changes.


    If the date value of H2 falls between 1/11/yyyy, then E2 is multiplied by 185, if it doesn't fall between the two dates, its multiplied by 220

    ADD

    If the date value of H2 falls between 1/11/yyyy, then F2 is multiplied by 185, if it doesn't fall between the two dates, its multiplied by 220

    END PRODUCT



    The formula below is what I already have:

    (if(h2=datevalue(1/11/yyyy:31/2/yyyy),e2*185,e2*220))+(if(h2=datevalue(1/1/yyyy:31/3/yyyy),f2*30,f2*35))




    Any ideas appreciated!

    Thanks,

    WWM

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Date based If Statement

    There is probably some mistake here: 31/2/yyyy
    Anyway, try to split this into separate conditions:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] If statement based on date in cell using today function?
    By nobodyukno in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2015, 10:42 AM
  2. [SOLVED] Nested If statement based on date
    By adamdaniel143 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2014, 02:53 AM
  3. How to run an IFerror statement based off a certain date range?
    By BrianKelleher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2014, 01:54 PM
  4. Permanent date stamp based on IF statement outcome
    By Darren6177 in forum Excel General
    Replies: 7
    Last Post: 05-09-2014, 04:30 PM
  5. If or Conditional Statement to Bold certain cell based on date
    By Megan_G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2012, 01:56 PM
  6. Replies: 4
    Last Post: 05-14-2009, 07:13 AM
  7. Replies: 10
    Last Post: 02-22-2009, 02:44 PM

Tags for this Thread

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