I have a spreadsheet with a few hundred lines of data. From that data, I need to SUM a quantity value from each line that meets a few criteria. The part that is confusing me most is trying to pull the MONTH in 3-digit character form (i.e. FEB) from a Date field (i.e. 2/26/2018) and comparing it to another cell.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]124B23[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]onhand[/TD]
[TD="align: center"]FEB[/TD]
[TD="align: center"]MAR[/TD]
[TD="align: center"]APR[/TD]
[TD="align: center"]MAY[/TD]
[TD="align: center"]JUN[/TD]
[TD="align: center"]JUL[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]inventory[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[TD="align: center"]forecast[/TD]
[TD="align: center"]xxxxx[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
</tbody>[/TABLE]
The data from "Data Dump" is mass data on the second tab of my spreadsheet.
When I enter the formula below into D4, the result is always ZERO.
{=SUM(IF(AND(TEXT('Data Dump'!$E:$E,"mmm")=D2,'Data Dump'!$D:$D=$A1),'Data Dump'!$F:$F,0))}
If I try the SUMIFS function, I get a #VALUE ? error.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]124B23[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]onhand[/TD]
[TD="align: center"]FEB[/TD]
[TD="align: center"]MAR[/TD]
[TD="align: center"]APR[/TD]
[TD="align: center"]MAY[/TD]
[TD="align: center"]JUN[/TD]
[TD="align: center"]JUL[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]inventory[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[TD="align: center"]556[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[TD="align: center"]forecast[/TD]
[TD="align: center"]xxxxx[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
</tbody>[/TABLE]
The data from "Data Dump" is mass data on the second tab of my spreadsheet.
When I enter the formula below into D4, the result is always ZERO.
{=SUM(IF(AND(TEXT('Data Dump'!$E:$E,"mmm")=D2,'Data Dump'!$D:$D=$A1),'Data Dump'!$F:$F,0))}
If I try the SUMIFS function, I get a #VALUE ? error.