+ Reply to Thread
Results 1 to 14 of 14

Counting values

Hybrid View

Eclipzan Counting values 08-31-2012, 02:10 PM
mikerickson Re: Counting values 08-31-2012, 02:29 PM
Eclipzan Re: Counting values 08-31-2012, 02:40 PM
mikerickson Re: Counting values 08-31-2012, 03:16 PM
Eclipzan Re: Counting values 08-31-2012, 03:27 PM
mikerickson Re: Counting values 08-31-2012, 04:10 PM
Eclipzan Re: Counting values 08-31-2012, 04:18 PM
mikerickson Re: Counting values 08-31-2012, 08:46 PM
Eclipzan Re: Counting values 09-01-2012, 04:08 AM
Cutter Re: Counting values 09-01-2012, 06:41 AM
Eclipzan Re: Counting values 09-01-2012, 06:58 AM
oeldere Re: Counting values 09-01-2012, 07:15 AM
Eclipzan Re: Counting values 09-01-2012, 07:36 AM
oeldere Re: Counting values 09-01-2012, 07:55 AM
  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Herning, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Counting values

    Hey i want to make a pillar diagram

    this is the values:
    X: weight = 1 amaunt = 4
    X: weight = 2 amaunt = 2
    X: weight = 3 amaunt = 4
    X: weight = 4 amaunt = 2
    X: weight = 5 amaunt = 4
    X: weight = 4 amaunt = 2
    X: weight = 3 amaunt = 4
    X: weight = 2 amaunt = 2
    X: weight = 1 amaunt = 2

    Now i want to sort it so that the weight is horizontal, and stack if there are to of the same weight.
    1. pillar named 1 with a value of 6 (4+2)
    2. pillar named 2 with a value of 4 (2+2)
    3. pillar named 3 with a value of 8 (4+4)
    4. pillar named 4 with a value of 4 (2+2)
    5. pillar named 5 with a value of 4 (4)
    and if i was to change anything it would correct it self.
    Last edited by Eclipzan; 09-01-2012 at 07:37 AM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Counting values

    If you have weights in column A and amounts in column B, the formula =SUMIF(A:A, 1, B:B) will return the sum of the amounts associated with weight 1.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Herning, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Counting values

    ok i not sure how i sould do that so if you could do it in this?
    Attached Files Attached Files

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Counting values

    In G11, put the formula =SUMIF($B:$B, RIGHT(G10,1),$C:$C) and then drag right.

  5. #5
    Registered User
    Join Date
    08-31-2012
    Location
    Herning, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Counting values

    i have v. 2007 it says that there is a error in the formula would you mabye type it in and reply with the file attached?

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Counting values

    That formula worked for me. Perhaps you could attach a file with the (erroneous) formula.

  7. #7
    Registered User
    Join Date
    08-31-2012
    Location
    Herning, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Counting values

    remove the * in G11

    but if you just make the file with the right formula then save it as a 2007 version it should be good
    Attached Files Attached Files

  8. #8
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Counting values

    Removing the * and the formula works for me.

    One possibility, you might try swapping the commas in thiat formula with semi-colons.
    European notation can differ from American.

    =SUMIF($B:$B; RIGHT(G10;1); $C:$C)

  9. #9
    Registered User
    Join Date
    08-31-2012
    Location
    Herning, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Counting values

    now the formula is correct but it says #name?
    Attached Files Attached Files

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Counting values

    Remove the space before the RIGHT and the result is 4.

  11. #11
    Registered User
    Join Date
    08-31-2012
    Location
    Herning, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Counting values

    Sorry but it does not work.
    Is it because I have v. 2007?
    =SUMIF() does not exist among the formulas I have available
    =SUM() does
    and i removed the space after $C:$C Still same error "#name?"
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Counting values

    See the file. It get as result 4.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  13. #13
    Registered User
    Join Date
    08-31-2012
    Location
    Herning, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Counting values

    ok so it’s because I have another language pack(Danish) to me it looks like this: =SUM.HVIS($B:$B;HØJRE(G10;1);$C:$C)
    This is what I was asking for to begin with. That one would make the file that is working for me to open.
    But I want to thank you all for your trouble

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Counting values

    You can use this link to translate the formala.

    It is also available for Danish.

    http://www.applewood.nl/forms/3000/FRM-004/

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