+ Reply to Thread
Results 1 to 14 of 14

Formula auto update

Hybrid View

M. Shahbaz Formula auto update 12-05-2017, 01:07 AM
shukla.ankur281190 Re: Formula auto update 12-05-2017, 02:18 AM
M. Shahbaz Re: Formula auto update 12-05-2017, 05:46 AM
M. Shahbaz Re: Formula auto update 12-05-2017, 08:02 AM
shukla.ankur281190 Re: Formula auto update 12-05-2017, 08:06 AM
M. Shahbaz Re: Formula auto update 12-06-2017, 12:28 AM
JohnTopley Re: Formula auto update 12-06-2017, 12:46 AM
M. Shahbaz Formula auto update 12-06-2017, 03:40 AM
shukla.ankur281190 Re: Formula auto update 12-06-2017, 12:47 AM
JohnTopley Re: Formula auto update 12-06-2017, 05:10 AM
M. Shahbaz Re: Formula auto update 12-06-2017, 05:46 AM
JohnTopley Re: Formula auto update 12-06-2017, 07:18 AM
JohnTopley Re: Formula auto update 12-06-2017, 08:23 AM
M. Shahbaz Re: Formula auto update 07-19-2020, 06:09 AM
  1. #1
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Smile Formula auto update

    Hello every one,

    I need help of some excel experts, I have an inventory sheet, and I daily update sumif Formula in Monthly sheet. I want to d something special,😄. I want, when i add new sheet as next date, then formula should auto update in monthly sheet, If you have some ideas, So please share with me.

    Thanks,

    Best Regard: M. Shahbaz Anwar
    Attached Files Attached Files
    "M. Shahbaz Anwar Advocate"

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: Formula auto update

    Ok you will have first extract all sheets which are in your workbook

    There is and old Macro function GET.CELL which works in all excel version for extracting various kind of information. I have use one of them formula for extracting sheet name. I have created a name manger to do so follow the steps.

    Press Alt->M->N -> click on New -> put name SheetList and in refer to =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1))," ") and then ok.

    in Monthly sheet

    U3
    Formula: copy to clipboard
    =IFERROR(TRIM(INDEX(SheetList,ROW()-2)),"")


    Copy down.

    We need another name manger with name SheetRange and put refer to =OFFSET(MONTHLY!$U$3,,,COUNTIFS(MONTHLY!$U$3:$U$41,"?*")-3)

    Now

    Monthly Sheet

    F6
    Formula: copy to clipboard
    =SUMPRODUCT(SUMIFS(INDIRECT("'"&SheetRange&"'!"&CHAR(COLUMN(BR:BR))&":"&CHAR(COLUMN(BR:BR))),INDIRECT("'"&SheetRange&"'!B:B"),$B6))


    Copy across.

    Check the attachment,
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Formula auto update

    Thanks for great effort<
    But i think you could not understand my real problem, "I want, If I add new sheet in this workbook then formula should auto update in monthly sheet.
    I have tried in your attached file, As i add new sheet in this workbok as name "05 DEC", then formula become disturbed..... Are you have any solution please.....
    I am sending you some screen shots.....

    Please check screen shot I hope you will understand.

    I want to "Auto update monthly sumif formula, as i add new sheet, then formula should auto update as new sheet added"

    Thanks if you understand...
    Attached Images Attached Images

  4. #4
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Formula auto update

    ANY ONE PLEASE HELP,,,SOLVE THIS PROBLEM////

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: Formula auto update

    You must refresh in the master sheet column U. Select U3:U10 then F2 and Control+Enter

  6. #6
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Formula auto update

    Sorry sir,
    All in vain, Not working this formula, Any other or its relevant formula,,,
    I want to monthly sheet auto sum as i add new sheet in the workbook.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: Formula auto update

    Shukla's reply in post #5 works for me.

    Alternative is for you to manually update dynamic range "Sheetrange" by adding new tab names BEFORE the last three names.

    Copy/paste special values (U3:U10) to remove Shukla's formula.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Thumbs up Formula auto update

    Thanks for interest in my post,
    Sorry for weak English,
    Sir, I think you also did not understand, what my problem.
    I have already placed sumif Formula in Monthly sheet for Monthly Report. Now i want a formula that auto update that sumif formula in monthly sheet,
    as i have used sum if formula in column F to L.
    As now i have created 4 sheets before monthly sheet, And in Monthly sheet formula is =SUMIF('02 DEC'!$B:$B,MONTHLY!$B6,'02 DEC'!F:F)+SUMIF('03 DEC'!$B:$B,MONTHLY!$B6,'03 DEC'!F:F)+SUMIF('04 DEC'!$B:$B,MONTHLY!$B6,'04 DEC'!F:F)+SUMIF('05 DEC'!$B:$B,MONTHLY!$B6,'05 DEC'!F:F)

    I want auto update above formula If I enter new sheet like ''06 DEC''. Then formula should auto update by the name of sheet "06 Dec" in Monthly sheet cells E5 to L403.
    AS adding new sheet "06 DEC"
    =SUMIF('02 DEC'!$B:$B,MONTHLY!$B6,'02 DEC'!F:F)+SUMIF('03 DEC'!$B:$B,MONTHLY!$B6,'03 DEC'!F:F)+SUMIF('04 DEC'!$B:$B,MONTHLY!$B6,'04 DEC'!F:F)+SUMIF('05 DEC'!$B:$B,MONTHLY!$B6,'05 DEC'!F:F)+SUMIF('06 DEC'!$B:$B,MONTHLY!$B6,'06 DEC'!F:F)


    Is this is possible?
    I think this is possible......
    Or any relevant formula, which sum all previous sheet's specific value of cells..
    Thanks,,,
    And Ignore if you don't understand,,
    Attached Files Attached Files

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: Formula auto update

    Copy paste U column formula again when you add any sheet.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: Formula auto update

    You don't understand the formula provided:

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&SheetRange&"'!"&CHAR(COLUMN(BX:BX))&":"&CHAR(COLUMN(BX:BX))),INDIRECT("'"&SheetRange&"'!B:B"),$B6))

    This calculates SUMIFS for ALL the sheets in the named range "Sheetrange" so as you add sheet names to the "Sheetrange" they will be included in the calculation.


    Have you actually tried it?

    See attached : tab "05 Dec" added with value of 1000 in TUP1 for RM00487

    Change this value and you will see change MONTHLY.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Formula auto update

    Thanks sir, I understand now
    But 1 question more!
    Is this possible, "Wheni add 06 DEC or new sheet before MONTHLY sheet, then the name of sheet (06 DEC) automatically add in column U under sheetrange cells.
    Hope you understand.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: Formula auto update

    Shukla's answer in Post #2 did exactly what you require: see file in post #2.

    Add new sheet, rename (if required), then select range U3:U10==> press F2 key then Ctrl+Enter together

    ...thought I don't consider adding a sheet name manually a problem.

    You could create a blank "daily" template (no data) and add all days for a given month ("06 Dec", "07 Dec" etc) and update the named range with all the tabs.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: Formula auto update

    Alternative ...

    Private Sub Worksheet_Activate()


    Application.ScreenUpdating = False

    Dim i As Integer
    Dim ws As Worksheet
    Dim rng As Range
    Dim ShtArr() As Variant
    ReDim ShtArr(1 To 31, 1 To 1)
    r = 0
    With ActiveSheet

    For i = 1 To Worksheets.Count
    If IsNumeric(Left(Worksheets(i).Name, 2)) Then
    r = r + 1
    ShtArr(r, 1) = Format(Worksheets(i).Name, "dd mmm")
    End If
    Next i

    Set rng = .Range(.Cells(3, "U"), .Cells(33, "U"))
    rng = ShtArr

    End With

    Application.ScreenUpdating = True

    End Sub


    Click om monthly tab==>View Code==> copy/paste above

    Assumes sheets to be included are of form "dd mmm" and maximum of one month (31 days)
    Attached Files Attached Files
    Last edited by JohnTopley; 12-06-2017 at 08:44 AM.

  14. #14
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Formula auto update

    Thanks for your help,,
    My problem is solved by your kind effort..
    Again thanks///

+ 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. Excel Auto Update with Formula
    By iqubalemco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2015, 03:13 AM
  2. [SOLVED] Auto update formula every minute
    By rtesone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2013, 01:59 AM
  3. How to run formula once, then never auto update?
    By markjh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2013, 10:47 AM
  4. % formula auto update
    By Fish10800 in forum Excel General
    Replies: 2
    Last Post: 10-12-2011, 12:25 PM
  5. Possible to auto update formula?
    By apollopt in forum Excel General
    Replies: 2
    Last Post: 03-17-2010, 04:32 AM
  6. How to auto-update the formula
    By seacnlib in forum Excel General
    Replies: 1
    Last Post: 05-06-2009, 02:48 AM
  7. How to turn off auto update on a formula
    By Dave in forum Excel General
    Replies: 0
    Last Post: 02-20-2006, 05:20 PM

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