+ Reply to Thread
Results 1 to 12 of 12

Formula to Summarize Data?

  1. #1
    Forum Contributor
    Join Date
    02-25-2008
    Location
    Windsor, ON Canada
    MS-Off Ver
    Excel 2007, 2003
    Posts
    119

    Formula to Summarize Data?

    I couldn't come up with a great title for this issue. Attaching a file.

    What this is, is an ownership matrix. Each column labelled A-U represents a location, and cells are either greyed out, or follow a "XX/YY" format. These XXs and YYs represent employees responsible for the account in that particular location. Columns AA-AF attempt to summarize responsibilities by person. Therefore, what I'd hope to see would be a "1" in AA3 and also a "1" in AF3.

    Is this possible?
    Attached Files Attached Files
    Last edited by 2709236; 01-28-2011 at 10:03 AM.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Formula to Summarize Data?

    if you see AA3 for example, you say you want a 1 to appear, even though MR appears in more than one location with more than one account number.

    Do you just want to show those who DONT appear in the matrix?
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to Summarize Data?

    Try:

    =IF(ISNUMBER(MATCH("*"&AA$2&"*",$C3:$W3,0)),1,"")

    copied across and down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Contributor
    Join Date
    02-25-2008
    Location
    Windsor, ON Canada
    MS-Off Ver
    Excel 2007, 2003
    Posts
    119

    Re: Formula to Summarize Data?

    Thank you, that worked!

  5. #5
    Forum Contributor
    Join Date
    02-25-2008
    Location
    Windsor, ON Canada
    MS-Off Ver
    Excel 2007, 2003
    Posts
    119

    Re: Formula to Summarize Data?

    I'm looking at the formula and trying to make sense of it. Any chance you can give me a quick 101 in layman's terms?

  6. #6
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Formula to Summarize Data?

    in particular this section for me!! cheers N

    ("*"&AA$2&"*",

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to Summarize Data?

    =IF(ISNUMBER(MATCH("*"&AA$2&"*",$C3:$W3,0)),1,"")

    The MATCH(lookup_value,lookup_array,match_type) function looks for the lookup_value in the lookup_array. I used wildcards * since the lookup array had multiple items in each cell, so I am looking for the value that is in AA2 within any of the cells in C3:W3. If it finds one, it returns the position within the lookup array that it is found, if not found it returns #N/A error... the match_type of 0 means look for an exact match..

    The ISNUMBER(value) function simply checks if the MATCH() function returned a position number or an error... and the IF(condition,value_if_true,value_if_false) says that if the ISNUMBER() function returns TRUE, then return a 1, else return nothing.

    The $ signs "freeze" columns or rows (whatever follows the $) so that formula can be copied down and the referencing remains absolute.

    Hope that helps.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to Summarize Data?

    Blake the * is a wildcard. So I am looking for something that "contains" the value found in AA2. Note the wildcard can only be used with certain functions, mainly the ones that have a comma separating the arguments to compare... e.g. MATCH, COUNTIF, SUMIF, SEARCH, FIND, etc... if you have an = separating the arguments, then the wildcard doesn't work, as in IF("x"="y") or Sumproduct(--(Array="X")), etc.

  9. #9
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Formula to Summarize Data?

    Makes perfect sense - thanks for your time. Cheers N

  10. #10
    Forum Contributor
    Join Date
    02-25-2008
    Location
    Windsor, ON Canada
    MS-Off Ver
    Excel 2007, 2003
    Posts
    119

    Re: Formula to Summarize Data?

    That makes sense.

    If I needed to have it sum how many occurrences were on each line, how would I change the formula?

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to Summarize Data?

    Try:

    =COUNTIF($C3:$W3,"*"&AA$2&"*")

    copied across and down.

    You can hide 0's by formatting these cells as Custom: 0;-0;;@

  12. #12
    Forum Contributor
    Join Date
    02-25-2008
    Location
    Windsor, ON Canada
    MS-Off Ver
    Excel 2007, 2003
    Posts
    119

    Re: Formula to Summarize Data?

    Incredible. Thanks for all the help!

+ 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