Good morning,
I can't for the life of me find what the issue is here and get rid of the #VALUE error.
I'm using this SUMPRODUCT fuction:
and I've even tried using this using the filter function:
, but in either case, they both return #VALUE.
This is in use for an attendance sheet, where if one is present they are marked with a 1. I'm trying to sum those 1's based on today's date on a sheet based on the current month. I intend to eventually adjust the formula to replace the sheet reference with an INDIRECT function to reference any new month sheet we add.
In any case, there's a column of data that marks what Shift & Position is being accounted for per person [C4:C100] (ie. there's 3x 1ST LEAD positions, all are present). There's a row of data that's simply every date of the month excluding Sundays and holidays - it's an array function that displays this [D4:AH4], being:
There is, however, one issue with this array where it's been extended from H3 all the way out to AH3 so that it could capture every day of the month on months with 31 days and any that have less - but in any months where there's less than 31 days the values return #N/A - which I can't seem to remove probably unless I knew a formula to use that wasn't an array here.
None of the data in Column C is formatted a "Text". It's all formatted "General". The data in row 3 are all formatted as a "Custom Date", except for the last few dates where it returns #N/A due to the array formula, but the SUMPRODUCT or FILTER functions I'm trying to use aren't referencing those columns (AF, AG, AH), so I assume it shouldn't matter?
I can't for the life of me find what the issue is here and get rid of the #VALUE error.
I'm using this SUMPRODUCT fuction:
Excel Formula:
=SUMPRODUCT(('Feb 23'!C4:C100=TODAY())*('Feb 23'!D3:AE3="1ST LEAD")*'Feb 23'!D4:AE100)
Excel Formula:
=SUM(FILTER(FILTER('Feb 23'!D4:AE100,'Feb 23'!C3:AE3=TODAY(),0),'Feb 23'!C4:C100="1ST LEAD",0))
This is in use for an attendance sheet, where if one is present they are marked with a 1. I'm trying to sum those 1's based on today's date on a sheet based on the current month. I intend to eventually adjust the formula to replace the sheet reference with an INDIRECT function to reference any new month sheet we add.
In any case, there's a column of data that marks what Shift & Position is being accounted for per person [C4:C100] (ie. there's 3x 1ST LEAD positions, all are present). There's a row of data that's simply every date of the month excluding Sundays and holidays - it's an array function that displays this [D4:AH4], being:
Excel Formula:
{=(WORKDAY.INTL(G1-1,SEQUENCE(1,(VLOOKUP(G1,Codes!D:E,2,FALSE))),11,Holidays!A2:A100))}
None of the data in Column C is formatted a "Text". It's all formatted "General". The data in row 3 are all formatted as a "Custom Date", except for the last few dates where it returns #N/A due to the array formula, but the SUMPRODUCT or FILTER functions I'm trying to use aren't referencing those columns (AF, AG, AH), so I assume it shouldn't matter?