+ Reply to Thread
Results 1 to 4 of 4

formula question that would use a date range instead of column range?

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    formula question that would use a date range instead of column range?

    Hello,

    I have a work schedule that uses the following formula in a worksheet titled Payroll:
    =SUM(IFERROR(--SUBSTITUTE(UPPER(INDEX(May!$Q$5:$AD$49,MATCH(Payroll!$FL4,May!$A$5:$A$49,0),)),UPPER($A$2:$A$14),""),0))

    Would it be possible to edit this section of the formula "(INDEX(May!$Q$5:$AD$49," upon which the formula currently looks for certain criteria between columns "Q" and "AD" on the May worksheet; a formula (one of many) I have to edit yearly to adjust to a new date range. Instead I would prefer the formula to look at two separate cells with dates in them on the Payroll sheet like in cells "FM2" & "FQ2" and then any of the criteria the formula above is trying to match and look for would instead look for the data by looking for the criteria >=FM2 but <=FQ2 from dates listed on the May worksheet range starting from 05/01/15 in cell C1 through 5/31/15 in cell AG1.

    I don't have a sample workbook yet that I can add, but I'll try making one if my request is too complicated without one. Thanks to anyone willing to take the time to look at this!
    Attached Files Attached Files
    Last edited by lilsnoop; 02-19-2015 at 09:12 PM. Reason: added sample workbook

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: formula question that would use a date range instead of column range?

    I thought something like this might work but it says it has too many arguments:
    =SUM(IFERROR(--SUBSTITUTE(UPPER(INDEX(May!$C$1:$AG$1,">="&$FM$2,May!$C$1:$AG$1,"<="&$FQ$2),MATCH(Payroll!$FL4,May!$A$5:$A$49,0),)),UPPER($A$2:$A$14),""),0))

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: formula question that would use a date range instead of column range?

    Anyone have any suggestions? or this just not doable? Thanks!

  4. #4
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: formula question that would use a date range instead of column range?

    Any alternative formula suggestions? I've been searching the net, but without success.

+ 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: 0
    Last Post: 11-07-2013, 03:52 PM
  2. Formula to Check Column A for date range and count Column B
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2009, 12:58 PM
  3. Replies: 25
    Last Post: 09-07-2005, 12:05 AM
  4. I need a formula to find rows within a date range in one column?
    By M. Penney in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2005, 08:06 PM
  5. Date range formula question
    By Wizbangdoodle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-02-2005, 12:12 AM

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