I am using this code to look at a column and if it contains "READING" it will look for the corresponding position in CJ117 to CJ156 and add them all up.
The problem is that the word "READING" could appear cross eight columns, BS to BZ. I've had mixed success with the following formula, sometimes it works and sometimes it does'nt but I can't work out why. Is there a better way of doing it.=SUMIF($BS$6:$BS$45,"READING",(CJ$117:CJ$156))
=SUMIF($BS$6:$BZ$45,"READING",(CJ$117:CJ$156))
Try:
=SUMPRODUCT(($BS$6:$BZ$45="READING")*(CJ$117:CJ$156))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks