+ Reply to Thread
Results 1 to 15 of 15

how add up a value onto a cell that has a sum formula

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    how add up a value onto a cell that has a sum formula

    Hello friends
    I need to sum up the sales figure. I have a column for daily sales till end of day and a column showing monthly figure till today. Is there any way I can have a formula or way to have the monthly figure to update by itself once I enter daily sales figure?
    Eg: column B had a value 10. I will enter in column A total sale for today as 4 and when press enter button, the value in column B should turn to 14.
    Pls help
    Thanks
    sajith

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: how add up a value onto a cell that has a sum formula

    Please attach a workbook, showing your existing structure, and your desired outcome.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    Quote Originally Posted by OllyXLS View Post
    Please attach a workbook, showing your existing structure, and your desired outcome.
    Hi
    Unfortunately I am using the mobile to post the querry and have no access to internet on the computer I am working on.
    My will try to explain my Q more detail.
    in a spreadsheet
    column A has name of staff, X.
    Column B has daily no. of units sold
    column C has month till date Sales made.
    Today 21.01 staff X sells 2uts.
    When I open the file, column C is having 10uts sold till 20.01.14


    I will enter 2 in column B.
    I am looking for the value in C to change to 12 once I enter 2 and press the 'eenter' key.

    I hope my Q is more clear now.
    Sajith

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: how add up a value onto a cell that has a sum formula

    Not much clearer, I'm afraid. Do you have a row per staff member per day? What happens with today's sales value (2 units) when you open the file tomorrow?

    It sounds like you want the value in column C to update without there being a formula and a list of daily sales anywhere. Is that what you want? If so, can you change your data structure, and / or can you use VBA?

    It's really hard to help you without seeing what we're working with, and what your desired outcome looks like.

  5. #5
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    The figure 2 will appear same tomorrow as well. If X sells another 3 uts tomorrow I will enter 3 in B and value has to change to 12+3=15. Once I do this, I will circulate the file among the staff.

  6. #6
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    I meant the value in C has to change to 15.

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: how add up a value onto a cell that has a sum formula

    No progress from those answers. Tomorrow's entry of 3 - does this replace the value of 2, in the same cell, or is it entered in another row?

    And you haven't answered my questions on whether you can change the workbook structure, and / or use VBA.

    Unless you can provide a sample workbook, showing your layout, and how you would like it to work for daily updates, then I cannot help any further.

  8. #8
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    Yes the figure 3 will replace 2 already available when I open the work book tomorrow. I have not used VBA so far. But tried to enter macros in a workbook.
    I get your point, will try to upload the file a bit later

  9. #9
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    Here is a sample workbook. hope it gives the idea
    Attached Files Attached Files

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: how add up a value onto a cell that has a sum formula

    I can see 2 separate tables for 2 days. If each day have each separate table like this, day after day goes down, try this:
    E15=LOOKUP(2,1/($A$1:A14=A15),$E$1:E14)+C15
    Drag down.

    If you have 1 table for current day only, I afraid that VBA solution must be applied.
    Quang PT

  11. #11
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    Quote Originally Posted by bebo021999 View Post
    I can see 2 separate tables for 2 days. If each day have each separate table like this, day after day goes down, try this:
    E15=LOOKUP(2,1/($A$1:A14=A15),$E$1:E14)+C15
    Drag down.

    If you have 1 table for current day only, I afraid that VBA solution must be applied.
    Hi Unfortunately



    No.. The table will be only one and everyday the value on daily sales will keep changing

  12. #12
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: how add up a value onto a cell that has a sum formula

    That's really poor spreadsheet design. How can you track daily entries?

    If you MUST use such a structure, then the following code would do what you desire:

    Please Login or Register  to view this content.
    Whenever a cell value in the range C5:C8 changes, the new value is added onto the existing value in the corresponding cell in Column E.

    Let me repeat, I strongly recommend against this approach. it is poor design. You lose visibility (and potentially integrity) of your data.

    It would be better deign to keep a source table of sales by executive by date in one master table, then compile a summary report from that table. Every day add new records to your data table. This would allow checking and changes to be made, and would allow greater flexibility in reporting.
    Last edited by Olly; 01-21-2014 at 12:58 PM.

  13. #13
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    Quote Originally Posted by OllyXLS View Post
    That's really poor spreadsheet design. How can you track daily entries?

    If you MUST use such a structure, then the following code would do what you desire:

    Please Login or Register  to view this content.
    Whenever a cell value in the range C5:C8 changes, the new value is added onto the existing value in the corresponding cell in Column E.

    Let me repeat, I strongly recommend against this approach. it is poor design. You lose visibility (and potentially integrity) of your data.

    It would be better deign to keep a source table of sales by executive by date in one master table, then compile a summary report from that table. Every day add new records to your data table. This would allow checking and changes to be made, and would allow greater flexibility in reporting.
    Thank you very much. Will try ur advise as soon as I can. Infact the table send to u has only few fields to give u the idea of what I am looking for. The data has many xolumns and rows thought will confuse u more.
    Thanks a ton once again will keep ur advise in mind.
    Will keep u posted on the result

  14. #14
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    Quote Originally Posted by sajithnair View Post
    Thank you very much. Will try ur advise as soon as I can. Infact the table send to u has only few fields to give u the idea of what I am looking for. The data has many xolumns and rows thought will confuse u more.
    Thanks a ton once again will keep ur advise in mind.
    Will keep u posted on the result
    It worked.. Thanks a ton... :-)

  15. #15
    Registered User
    Join Date
    01-21-2014
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: how add up a value onto a cell that has a sum formula

    Quote Originally Posted by OllyXLS View Post
    That's really poor spreadsheet design. How can you track daily entries?

    If you MUST use such a structure, then the following code would do what you desire:

    Please Login or Register  to view this content.
    Whenever a cell value in the range C5:C8 changes, the new value is added onto the existing value in the corresponding cell in Column E.

    Let me repeat, I strongly recommend against this approach. it is poor design. You lose visibility (and potentially integrity) of your data.

    It would be better deign to keep a source table of sales by executive by date in one master table, then compile a summary report from that table. Every day add new records to your data table. This would allow checking and changes to be made, and would allow greater flexibility in reporting.
    Hi... Today I have another thought on the format

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Retaining formula cell references when copying a formula to a different cell
    By FrankParisi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2013, 07:05 AM
  2. Replies: 5
    Last Post: 05-07-2013, 08:34 AM
  3. Change Cell Font Color if Cell Contains Formula Referencing Another Cell
    By wilcox.patrick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 10:24 PM
  4. Replies: 2
    Last Post: 03-07-2008, 08:05 PM
  5. Replies: 3
    Last Post: 07-10-2007, 04:57 PM

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