+ Reply to Thread
Results 1 to 4 of 4

Using dates as conditions to select whether or not the 'sum' includes the cost column

  1. #1
    Registered User
    Join Date
    11-24-2022
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    7

    Using dates as conditions to select whether or not the 'sum' includes the cost column

    Hi all,

    Thank you in advance for your help. This is a multi-part formula that I need to work out and I keep running into brick walls, not least because of the way Excel reads dates (I'm UK based). The information is also spread across several worksheets and the sum total is on a results page at the end.

    What I'm trying to do is to work out whether a maintenance cost should be included in a sum column. The condition for this is whether it is due to be replaced by the end of the season for us (31st August). So the trail is - if [due date] is before [end of year date], include contents of [maintenance cost] cell for that row to the sum total on the results page. At the moment I'm working to =IF('worksheet! date cell'<31/08/2023, 'worksheet! replacement cost cell (for if the 'true' value), 0 (for the 'if false' value).

    E.g.: =IF('Site1'!B1<31/08/2023,'Site1'D2,0). This is just returning a value of 0 even though the value I have in B1 is 16/08/2023, so 'less than' 31/08/2023. I'm working on Excel online if that has an effect although I can shift offline.

    Can anybody please point out what I'm doing wrong?
    Last edited by Intermedi; 11-25-2022 at 05:42 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Using dates as conditions to select whether or not the 'sum' includes the cost column

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-24-2022
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Using dates as conditions to select whether or not the 'sum' includes the cost column

    You absolute marvel! It works now, thank you so much.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Using dates as conditions to select whether or not the 'sum' includes the cost column

    You're welcome.


    You may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Replies: 2
    Last Post: 11-17-2022, 09:30 AM
  2. Replies: 3
    Last Post: 10-26-2022, 01:34 AM
  3. Replies: 2
    Last Post: 04-10-2020, 02:59 AM
  4. Calculating Margin that Includes a Percentage of Final Price as a Cost.
    By Moseleys3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2019, 12:51 AM
  5. [SOLVED] Creating a column of regular fortnightly dates which also includes 1st of every month
    By Quandry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2016, 10:58 PM
  6. Select last value from a column with conditions
    By fneves88 in forum Excel Formulas & Functions
    Replies: 34
    Last Post: 10-23-2015, 05:46 PM
  7. Replies: 5
    Last Post: 01-09-2006, 07:25 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