+ Reply to Thread
Results 1 to 4 of 4

Total based on string position and expiration date

  1. #1
    Registered User
    Join Date
    07-06-2018
    Location
    Durban
    MS-Off Ver
    2007
    Posts
    1

    Total based on string position and expiration date

    My Excel 2007 sheet has 5 columns - Milk, Cheese, Yogurt, Bread, and Expiration Date. Each row has one string "X" with a corresponding expiration date. I need help calculating the total amount of each expired item. The sheet will contain 400 rows.



    Thank you for taking the time to help.

  2. #2
    Registered User
    Join Date
    08-03-2017
    Location
    Benzina practice
    MS-Off Ver
    2010
    Posts
    13

    Re: Total based on string position and expiration date

    Can you upload a spreadsheet with both data and results of what you are trying to do?

    You can use this formula =COUNTIF(E2:E15,">="&G1)

    the E2:E15 section should be updated as needed to the range containing expiration dates. G1 would need to be updated with the date you are checking for expriations - most likely you should use TODAY().

    This will count each row that is expired. I am not sure this is what you are trying to do.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Total based on string position and expiration date

    Is this are you looking for:

    =COUNTIFS(B2:B9,"X",$F$2:$F$9,"<"&TODAY())

    Untitled.png
    Quang PT

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Total based on string position and expiration date

    Brandon, welcome to the forum

    Howzit there in Durbs? PE old boy here from Klerksdorp now in USA (sister lives in Durbs, and son in CT)


    @ Quang, I dont think 2007 has countifS?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Expiration date based on text column
    By KieronReed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2016, 11:16 AM
  2. [SOLVED] Data bar conditional formatting based as expiration date
    By darkmirko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2015, 04:37 PM
  3. Locating Column Position Based on Date
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-14-2011, 09:13 AM
  4. [SOLVED] Get the total employee per position by entering the start and end date
    By joe41 in forum Access Tables & Databases
    Replies: 4
    Last Post: 03-02-2009, 05:41 AM
  5. Assign value to a string based on its position in a list
    By RobynC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2008, 05:15 AM
  6. Substring based on position in string
    By yellephant in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2007, 10:12 AM
  7. [SOLVED] Expiration date based on 5 years and Birth month,day ...
    By Kane in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-26-2006, 12:42 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