• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Formula to increase buffer on certain weekdays|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Formula to increase buffer on certain weekdays|General Excel Questions & Answers|Excel Forum|My Online Training Hub

office scripts course

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Formula to increase buffer on certa…
sp_PrintTopic sp_TopicIcon
Formula to increase buffer on certain weekdays
Avatar
Howard Cohen
Member
Members
Level 0
Forum Posts: 56
Member Since:
December 8, 2016
sp_UserOfflineSmall Offline
1
April 1, 2022 - 10:37 pm
sp_Permalink sp_Print

I have a buffer in Cell E1

I need the formula in Col F & G to select F1 where date is the 7th as well as the second last working day, However if the 7th is a weekend or public holiday, then amend formula where this is the first workday prior to the 7th. If the second last day is a weekend or public holiday, then amend formula where this is the first workday prior to the second last day in the month

i have attached sample data

Your assistance is most appreciated

 

I have also posted on Formula to increase buffer on certain weekdays (excelforum.com)

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
April 4, 2022 - 1:16 pm
sp_Permalink sp_Print sp_EditHistory

Hi Howard,

Your question isn't clear to me, sorry. You mention a buffer in cell E1, but then refer to F1, which is an empty cell. Is this a mistake? Your formula in columns  F and G do a lot more than what you describe above, so I'm not sure what exactly you want. 

Your examples in the file do not illustrate your desired result as far as I can see and your description appears incomplete e.g.:

"However if the 7th is a weekend or public holiday, then amend formula where this is the first workday prior to the 7th." Amend the formula to what?

Perhaps you can use the WORKDAYS,INTL function to identify whether a date is a weekend or public holiday. However, you will need to add proper dates in the file, which are required to determine if a date is a public holiday (which also aren't listed).

Mynda

Avatar
Howard Cohen
Member
Members
Level 0
Forum Posts: 56
Member Since:
December 8, 2016
sp_UserOfflineSmall Offline
3
April 4, 2022 - 11:57 pm
sp_Permalink sp_Print sp_EditHistory

Hi Mynda

 

Sorry for not being clear in post # 1

 

I have a buffer in Cell E1 as well as an increased buffer in Cell F1

 

I have a formula in Col F in row F10 onwards. where I need to compute how much to transfer to savings, taking into account that the closing balance must not go below the buffer in E1

 

i need to amend my formula so that E1 changes to F1 on the 6th (if the 6th falls on a weekend or public holiday then the first working day prior to this) as well as one working day before the last day of the month.

 

 

it would be appreciated if you could amend my formula taking the above into account

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
April 5, 2022 - 11:12 am
sp_Permalink sp_Print

Hi Howard,

Thanks for clarifying. Another question:

The closing balance doesn't look right to me because it doesn't reconcile to any of the numbers in the row, with the exception of the first value which adds the CHQS to the Opening Balance. Also, the formula in this column references an empty cell in column BY and adds the day number from column B, which seems odd. Please confirm the closing balance should be:

= Opening Balance + O/S CHQS - To/From Savings

Mynda

Avatar
Howard Cohen
Member
Members
Level 0
Forum Posts: 56
Member Since:
December 8, 2016
sp_UserOfflineSmall Offline
5
April 5, 2022 - 4:05 pm
sp_Permalink sp_Print

Hi Mynda

 

thanks for the reply. the Closing Balance should be Opening Balance + Deposits - O/s Cheques - (to) frm Savings

 

Regards

 

Howard

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
April 5, 2022 - 8:56 pm
sp_Permalink sp_Print

Hi Howard,

With complex conditions like this it's easier to add some helper columns when working it out. In the attached file I've added some tables to columns O and P to identify the months where the 6th falls on a weekend or holiday and what the last working day before the end of the month -1 is. I then reference these tables to identify the minimum balance required on each day. 

Once we know the minimum balance required, the To/From Savings amount is easy to calculate.

If you want, you can consolidate the formulas into a single cell for each date, but I don't recommend it as there's nothing really to gain.

Note: I've changed the values in column A to proper dates, as you'll see if you select any of them and look in the formula bar. This is essential when working with dates like this. 

Hope that helps.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Howard Cohen
Member
Members
Level 0
Forum Posts: 56
Member Since:
December 8, 2016
sp_UserOfflineSmall Offline
7
April 6, 2022 - 4:47 am
sp_Permalink sp_Print sp_EditHistory

Hi Mynda

 

Thanks for all your effort in amending my cash flow

 

This is brilliant and is of great help

 

Regards

 

Howard

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Susan VanRiper, Dominic Brosnahan
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Herbie Key
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Young You
Forum Stats:
Groups: 3
Forums: 24
Topics: 6526
Posts: 28575

 

Member Stats:
Guest Posters: 49
Members: 32809
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.