Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Populate Fridays date on Mondays

Featured Replies

Hi all. We enter orders the day after they are sold. I would like to auto populate a field to accurately reflect the date sold. So Tuesday through Friday I need it to populate current date - 1. But the tricky part is that on Mondays I would like it to populate current date - 3 to show that it was sold on Friday. Could someone help me out with a formula to do this?

Thanks

if you have a field called "CreationDate" which is the day the orders are entered, you could do this for the "DateSold" field:

Case ( DayOfWeek(CreationDate)=2; CreationDate-3; CreationDate-1)

  • Author

I do have a creation date field and this appears to do the trick. Thanks so much for the help :

Then I guess I didn't understand the request because if the date is 5/9 (Sunday), it produces Saturday. I would think you would want Friday.

If you want to skip both weekend days then try:

CreateDate - 1 - Position ( "12" ; DayOfWeek ( CreateDate ) ; 1 ; 1 )

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.