+ Reply to Thread
Results 1 to 11 of 11

Excel formula issue when new data is added

  1. #1
    Registered User
    Join Date
    06-18-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    5

    Excel formula issue when new data is added

    Hello all! New to the forum and glad to be here

    I currently have a pivot table I'm working off of and the data is re pulled each day. Below my pivot table I have a simple formula to add a few rows and divide =SUM(C6,C16)/C22.

    I'm running into issues now that when the data is re-pulled if a new item, comes up it drops the formula and is now calculating the incorrect cell. How can I do this so it is always reading the same total line?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Excel formula issue when new data is added

    Welcome to the Forum AMG16!

    Impossible to say without knowing how your pivot table is organized, and what cells C6, C16, and C22 are. Your probably want some kind of a VLOOKUP to retrieve values based on which ones are the totals.

    Can you attach your file? The paper clip icon does not work for attachments. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-18-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    5

    Re: Excel formula issue when new data is added

    Thank you the reply. I have attached the file. I probably should have place the formulas on the bottom since I need it by month
    Last edited by AMG16; 06-19-2019 at 10:54 AM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Excel formula issue when new data is added

    There is no file attached. Please see instructions in my prior post above.

  5. #5
    Registered User
    Join Date
    06-18-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    5

    Re: Excel formula issue when new data is added

    It looks like the file failed due to the size limit, it should be good to go now. Just removed some months of data.
    Attached Files Attached Files

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Excel formula issue when new data is added

    There are two ways to do this.

    1. Ignore the fact this is a pivot table, and using lookup functions to find what you need. This is for the Total Shrinkage, January.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    2. Use Pivot Table functions to extract the data (same value)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The second one is easy to do if you type "=" then click on the cells in the pivot table where you want them in the formula; Excel will write the GETPIVOTDATA function automatically.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Excel formula issue when new data is added

    Also, instead of this format

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    just use

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    06-18-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    5

    Re: Excel formula issue when new data is added

    Sorry for the late response back I have been away on vacation! Thanks for the above this definitely helped out a lot. Now I need to add something for the month. Some business groups don’t have data say for Jan and the first month is April it will pull April’s data Under Jan since it counts columns

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,542

    Re: Excel formula issue when new data is added

    If I understand what you want then the following formula for the monthly columns may help:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for the 'Grand Total' column could read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If that does not help then please upload a file that demonstrates the issue.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Registered User
    Join Date
    06-18-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    5

    Re: Excel formula issue when new data is added

    Thanks for the response. I tried to make my file smaller so I can attach it.

    Example of The issue I'm having if you click workgroup new hires you can see the data didn't start until March. Since it was using the column # it placed March data under Jan.

    I want it to be able to read the month as well to make that match and bring the data under the correct months going forward.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,542

    Re: Excel formula issue when new data is added

    The above formulas have been modified for the file, and the monthly formulas are wrapped in IFERROR(...,"")
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. Issue When added to larger Macro
    By Mr.Bigz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2018, 03:37 PM
  2. Replies: 7
    Last Post: 12-15-2017, 12:14 AM
  3. [SOLVED] My formula works fine with previous data but not with new data added today
    By zoec in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2017, 07:52 AM
  4. Replies: 2
    Last Post: 04-15-2015, 05:33 PM
  5. [SOLVED] Sorting dates with added text issue.
    By skyping in forum Excel General
    Replies: 6
    Last Post: 11-26-2012, 09:38 PM
  6. Replies: 0
    Last Post: 05-16-2012, 11:57 AM
  7. Counting pages and lines (added issue)
    By adventuresofgabe in forum Excel General
    Replies: 6
    Last Post: 04-21-2011, 10:58 AM

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