+ Reply to Thread
Results 1 to 3 of 3

Finding a word in multiple rows and columns, returning sum

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    Question Finding a word in multiple rows and columns, returning sum

    Hello,

    I have some sets of data that aren't all in the same row or column. See below.

    A B C D
    ab 2 bg 5
    ig 3 he 2
    lk 1 ig 9

    (Blank Row)

    ab 4 op 3
    fs 2 ig 5


    And there's more than 2 sets as shown here. But there it does always follow that Column X is names, Column X+1 is qty. So I would like to type "ab" in say A50, and in B50 it would return 6. and "ig" would return 17. I would like to do this via formula and not have to modify or move my original data around. Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Finding a word in multiple rows and columns, returning sum

    perhaps it would be easier to help you if you uploaded a sample workbook, showing what data you are working with, a few examples of what your expected outcome would be, and how you would arrive at that (remove any confidential info if necessary).

    try using countif() though, and see how far you get?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding a word in multiple rows and columns, returning sum

    Try something like this...

    =SUMIF(A2:C20,"ig",B2:D20)

    Note how the ranges are offset.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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