+ Reply to Thread
Results 1 to 3 of 3

analyze a column, get the adjacent integer and sum it up as a total

  1. #1
    Registered User
    Join Date
    05-11-2011
    Location
    Malta
    MS-Off Ver
    Excel 2007/2010
    Posts
    7

    analyze a column, get the adjacent integer and sum it up as a total

    What I would like to do is the following:

    if for e.g. i have the following statistics:

    46 23
    12 26
    102 31
    1 27
    33 25
    34 21
    55 33
    20 23
    29 27
    34 28

    and I stated before for example if I choose the number 33, then I know that the numbers greater or equal to 33 (in the 1st column) are the 46, 102, 33, 34, 55 and 34 and it appears 6 times.

    Is it possible to choose automatically their respective adjacent number (2nd column) such as 23 (for 46), 31 (for 102), 25 (for 33), 21 (for 34) and add them up as a total?

    Thanks!
    Last edited by NBVC; 05-13-2011 at 07:55 AM.

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

    Re: analyze a column, get the adjacent integer and sum it up as a total

    I think you can use SUMIF

    e,g,

    =SUMIF(A1:A10,">=33",B1:B10)

    if 33 is in an imput cell, then

    =SUMIF(A1:A10,">="&C1,B1:B10) where C1 is your input cell

    if the formulas don't work, replace the commas ( , ) with semicolons ( ; )
    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.

  3. #3
    Registered User
    Join Date
    05-11-2011
    Location
    Malta
    MS-Off Ver
    Excel 2007/2010
    Posts
    7

    Re: analyze a column, get the adjacent integer and sum it up as a total

    NVBC, thanks so much you guys are a goldmine!

    the formula is working perfectly this is going to make my work so much more time-effecient!

    thanks again, excelforum.com rocks!!

+ 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