+ Reply to Thread
Results 1 to 2 of 2

Thread: Using SUMIF across multiple columns

  1. #1
    Registered User
    Join Date
    03-13-2010
    Location
    Bedfordshire, England
    MS-Off Ver
    Excel 2003
    Posts
    49

    Using SUMIF across multiple columns

    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.

    =SUMIF($BS$6:$BS$45,"READING",(CJ$117:CJ$156))
    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:$BZ$45,"READING",(CJ$117:CJ$156))

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Using SUMIF across multiple columns

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0