I am struggling to find a solution to my problem.
In the "Folders" tab of my google sheet (link below), there are 3 query functions located in columns Q, R, S (in yellow). Query in column Q pulls the titles from TEST!F4:F
if it states "LABOR" in TEST!AH4:AH
. The other two query formulas sum up the numbers; One in TEST!N4:N
and the other one in TEST!O4:O
.
The problem is that the sums are not on the same row as corresponding titles. The whole data combined should look exactly like in FOLDERS!L1:N
.
For example, "FRONT GRADING & DEMO" should have a number 6 next to it in column R and nothing (or 0) in column S. Another example, " POURED PAVER DRIVEWAY W/ TURF" should have a number 6 next to it in column R and 9.6 in column S.
The reason why FOLDERS!L1:N
is not used is that I couldn't get it to work with 2 criteria. First criteria is that it needs to consider TEST!E4:E
(that's what it currently does) and the other criteria is to not add up the number if TEST!C4:C
is "TRUE" (chequebooks ticket).
I hope the above explanation is not confusing and someone could help me. Maybe there is another solution besides a query function?
Thank you