+ Reply to Thread
Results 1 to 8 of 8

Auto-update values (guessing, IF formula...)

  1. #1
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Auto-update values (guessing, IF formula...)

    Hi, can I ask for a suggestion, how to help eliminate manual work updating file every month?

    All details are explained in a file attached, but basically, I get days and weeks moving around with every new month selected, and challenge is: to get end of week results I need to be updating end of week formulas for every new month. Such a waste of time...

    Here is a file:

    https://www.excelforum.com/attachmen...1&d=1506882379

    There are existing formulas there already, only they dont do a proper work...

    Thanking in advance!!
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Auto-update values (guessing, IF formula...)

    =IFERROR(IF(AH$2=0,,COUNTIFS(INDEX($C5:$AG5,AG$2+1):INDEX($C5:$AG5,AH$2),"Y")/SUM(COUNTIFS(INDEX($C5:$AG5,AG$2+1):INDEX($C5:$AG5,AH$2),{"y","n"}))),)
    and date of the month in AF1
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Auto-update values (guessing, IF formula...)

    Try this monstrosity in AH5:

    =IFERROR(COUNTIFS(INDEX($C$5:$AG$5,DAY(WORKDAY.INTL($C$4-1,RIGHT(AH$4,1)-1,"1111110")+1)):INDEX($C$5:$AG$5,DAY(MIN(WORKDAY.INTL($C$4-1,RIGHT(AH$4,1),"1111110"),EOMONTH($C$4,0)))),"Y")/SUM(COUNTIFS(INDEX($C$5:$AG$5,DAY(WORKDAY.INTL($C$4-1,RIGHT(AH$4,1)-1,"1111110")+1)):INDEX($C$5:$AG$5,DAY(MIN(WORKDAY.INTL($C$4-1,RIGHT(AH$4,1),"1111110"),EOMONTH($C$4,0)))),{"y","n"})),0)

    Edit: it's plug-n-play -- no helper rows, no changes to your layout, no named ranges.
    Last edited by Root_; 10-01-2017 at 05:29 PM.

  4. #4
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Auto-update values (guessing, IF formula...)

    Thank you so much Tim, it works!! I dont know how you guys do it... its genius :-)

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Auto-update values (guessing, IF formula...)

    Helper row (hide) six: WeekOfTheMonth:
    Please Login or Register  to view this content.
    AH5:AL5:
    Please Login or Register  to view this content.
    Named Ranges:
    DaysOfMonth ='JANUARY (2)'!$C$4:$AG$4
    WeekOfTheMonth ='JANUARY (2)'!$C$6:$AG$6
    Attached Files Attached Files
    Ben Van Johnson

  6. #6
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Auto-update values (guessing, IF formula...)

    It works too, Root_ Awesome, thank you so much guys!

  7. #7
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Auto-update values (guessing, IF formula...)

    Thank you protonLeah, works beautifully!

  8. #8
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Auto-update values (guessing, IF formula...)

    @Root_ :

    I worked applying your formula, which is cool, only I bumped into issue, when added more rows and trying to get average for all rows.

    Explained details are in the excel file attached, would it be possible for you to take a look and suggest if your given formula could be adapted for a new condition?

    Thanking in advance!

    https://www.excelforum.com/attachmen...1&d=1506946581
    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. [SOLVED] Auto update DV list with dynamic values
    By rotorbloke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-24-2023, 06:51 AM
  2. Auto update of values
    By sugarglider in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 10:31 PM
  3. Set Graph to Auto-Update After Applying Values
    By yakabod in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 10-31-2013, 04:49 AM
  4. Replies: 1
    Last Post: 07-24-2013, 11:51 AM
  5. [SOLVED] Macro to auto Update values in different sheets
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2012, 04:24 PM
  6. Auto Update Values
    By Justinthetree in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-01-2010, 04:24 PM
  7. Auto Update the formula values without opening the link worksheets
    By Siva in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-13-2006, 07:35 AM

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