+ Reply to Thread
Results 1 to 9 of 9

"Sequential" summing

  1. #1
    Registered User
    Join Date
    11-28-2011
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    4

    "Sequential" summing

    Hello all,
    I would appreciate your help with a problem I'm having.

    I have a spreadsheet with the sales info of different stores, including location of the store, time of sale, and amount. Data for all stores and sales is in one spreadsheet.

    The sales are sorted by date, in a chronological order (older sales on a higher row, etc.). What I'm trying to do is to create a new column, in which next to each sale we will see the total sales in the store (including the current sale). Obviously, we need to condition the total sales to be calculated for each store separately.

    I've tried doing so by using the sumif and sumifs, but couldn't get it right .

    Since it's a bit hard to explain, I've uploaded this file:
    http://dl.dropbox.com/u/7112203/Question-excel.xlsx
    You can see the info for two stores (one in London and one in Sheffield), and on column E I calculated what I'm trying to achieve in my head.

    Your help would be very appreciated,

    Thank you in advance

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: "Sequential" summing

    In cell E2, paste:

    Please Login or Register  to view this content.
    then autofill down.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: "Sequential" summing

    In F2 and copy down,

    =E2 + IF(A2=A1, N(F1))
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    11-28-2011
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: "Sequential" summing

    Quote Originally Posted by shg View Post
    In F2 and copy down,

    =E2 + IF(A2=A1, N(F1))

    Thank you.
    Would you mind explaining the N(F1) command?
    Never seen anything like it.

    Thank you

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: "Sequential" summing

    If the first row is a header (i.e., text), then you can't add the text to the number at left; you get an error. The N function returns numbers unchanged, but converts text to 0.

  6. #6
    Registered User
    Join Date
    11-28-2011
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: "Sequential" summing

    Quote Originally Posted by shg View Post
    If the first row is a header (i.e., text), then you can't add the text to the number at left; you get an error. The N function returns numbers unchanged, but converts text to 0.
    It's weird, because in
    =E2 + IF(A2=A1, N(F1)
    you don't see anything that resembles "sum".

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: "Sequential" summing

    Put some text in F1 and try the formula in F2 with and without the N function. Watch it evaluate with the Evaluate Formula button.

  8. #8
    Registered User
    Join Date
    11-28-2011
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: "Sequential" summing

    follow up question, if you don't mind:
    how do I find, for each unique store, the time of the earliest sale? There is no "minif" function.

    This is a nice vid, but doesn't cover exactly what I need: http://www.youtube.com/user/ExcelIsF.../0/Ci4ahcW1NbM

    Thanks

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: "Sequential" summing

    Please take a few minutes to read the forum rules about cross-posting.

+ 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