I am using this formula in a spreadsheet
If A6 to A45 contains data it sums the corresponding numbers in B6 to B45. I would also like to only sum the numbers that are smaller than 1. I thought I could use the AND function combined with SUMIF but cannot get it to work. Something like this=SUMIF(A6:A45,"<>",(B6:B45))
Any ideas/help greatly appreciated.=SUMIF('PUPIL DATA'!$A$6:$A$45,AND("<>",<1)),(CW$117:CW$155)))
I need a clarification...are you looking to:
• sum Col_CW values on another sheet
where the corresponding Col_A cells on the current sheet:
• are not blank
• are less than 1
?
Try SUMPRODUCT function:
=SUMPRODUCT(--('PUPIL DATA'!$A$6:$A$45<>""),--('PUPIL DATA'!$A$6:$A$45<1),CW$117:CW$155))
BUT your ranges must be same:
6-45
117-155
is not same...
"Relax. What is mind? No matter. What is matter? Never mind!"
perhaps
=SUMPRODUCT(--(A6:A45<>"")*(B6:B45<1), B6:B45)
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks