+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Recognize Input in Col. A & Update Running Total of Col. B Values

  1. #1
    Registered User
    Join Date
    05-20-2011
    Location
    Glen Ridge, NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Recognize Input in Col. A & Update Running Total of Col. B Values

    So, I'm just finding me way through Excel and learning every minute. This one formula I haven't been able to figure out:

    I am entering data for trucking into a spread sheet...the trucks are coming from three different locations P1, P2 and P3.
    In my "A" column I enter any one of those three locations depending on the truck, in the same row, in the "B" column, I enter a weight for the truck.

    Separately, I want to create (3) automatically updating total weights. One for P1 trucks, one for P2 and one for P3.

    So it's a combination of two formulas really, it needs to recognize what is in the A column, and the corresponding value in the adjacent "B" cell.

    Any ideas?
    Last edited by IrishInNYC; 05-20-2011 at 12:29 PM.

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

    Re: Recognize Input in Col. A & Update Running Total of Col. B Values

    Have a look at the SUMIF function in Excel Help.

    e.g.

    =SUMIF($A$1:$A$10,"P1",$B$1:$B$10)

    this will sum B1:B10 where corresponding cells in A1:A10 contain P1.

    You can adjust the ranges to suit your data, and you can substitute "P1" with a cell reference containing P1 so that you can copy formula 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.

  3. #3
    Registered User
    Join Date
    05-20-2011
    Location
    Glen Ridge, NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Recognize Input in Col. A & Update Running Total of Col. B Values

    Through some trial and error I came up with =SUMIF(H:I,"P1",I:I).

    (The actual cells were H and I instead of A and B).

    Seems to work great.

+ 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