+ Reply to Thread
Results 1 to 6 of 6

(sum + match + offset = headache)

  1. #1
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    (sum + match + offset = headache)

    The attachment should be pretty easy to figure out.

    I need to use keyword criteria and sum the numbers 1 cell to the right of where the match/es is/are.

    Anyway, don't suggest rearranging the file because the actual file is insanely huge.
    Attached Files Attached Files
    Last edited by JBeaucaire; 09-19-2014 at 10:57 AM. Reason: Title correction

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: (SUM + MATCH + OFFSET = HEADACHE) Yelp meeey~~...

    Hi,

    We don't usually like being restricted in the advice we offer. And in this case the best advice I can offer is to rearrange your data.

    You are making the same mistake that I see time and time again. You are mixing up the two elements of data capture and final reporting. The two require quite different treatments.


    A lot of people start by designing the form that they expect to see as the final report, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it, Yours exhibits all those features.

    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round.
    You will also throw open the whole wonderful world of the powerful Pivot table functionality.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: (SUM + MATCH + OFFSET = HEADACHE) Yelp meeey~~...

    You are obviously right, however its not always upto you to create the initial file.

    The thing i'm asking for i have seen done before, but trying to find it again has been a failure so far.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: (SUM + MATCH + OFFSET = HEADACHE) Yelp meeey~~...

    Hi.

    Try this in O3:

    =SUMPRODUCT(0+(Terrain!$B$7:$AA$33=N3),Terrain!$C$7:$AB$33)

    Copy to the other cells as required.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: (SUM + MATCH + OFFSET = HEADACHE) Yelp meeey~~...

    I really have to get a training course one of these days. It seems to be simple if you know what you are doing.

    Thank you both - thread solved.

    Why is the "0+" in there btw? What does it do?
    Last edited by Polymorpher; 09-19-2014 at 08:52 AM.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: (SUM + MATCH + OFFSET = HEADACHE) Yelp meeey~~...

    Quote Originally Posted by Polymorpher View Post
    I really have to get a training course one of these days. It seems to be simple if you know what you are doing.

    Thank you both - thread solved.

    Why is the "0+" in there btw? What does it do?
    You're welcome.

    The clause:

    (Terrain!$B$7:$AA$33=N3)

    will generate an array of Boolean TRUE/FALSE responses as to the question of whether each of the entries in the array Terrain!$B$7:$AA$33 is equal to the value in N3 or not.

    Since SUMPRODUCT requires that the values passed to it for summing be numerical, we first coerce these Boolean TRUE/FALSE values into their numerical equivalents (TRUE=1, FALSE=0).

    Any suitable mathematical operation which also leaves these values unchanged will suffice for this. I chose to add zero, though multiplication by 1 and double-negation (--) are two other popular - and perfectly reasonable - alternatives.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] find, if match, then cut, offset. if not match, then cut and offset
    By flunzy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2014, 10:39 AM
  2. [SOLVED] Dynamic Name Range using Offset&Match with Match based off a different column
    By mdlpjr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2013, 06:33 PM
  3. [SOLVED] Index match headache
    By Grizz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 02:19 PM
  4. [SOLVED] index match with row information offset from the match cell
    By smls in forum Excel General
    Replies: 7
    Last Post: 08-30-2012, 09:48 AM
  5. Replies: 2
    Last Post: 03-16-2012, 12:03 PM

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.6.0 RC 1