Trying to use excel to double check future dates for scheduling orders and looking for input on best formula to use. I want to make sure that if the future date falls on a weekend, the return date is the preceding Friday/workday. Eg., start date in A1 and want my return date 180 days in the future, but if future date is a weekend, I want the return date to be the preceding Friday/workday. I thought I had it with WORKDAY, but one of my inputs must be wrong because it’s only working for some.

like
Posting as :
works at
You are currently posting as works at

I think this addresses your question. I tried to keep it simple, but if you're comfortable with more advanced formulas, you can streamline. But want to show you the logic.
Step 1 is convert each date into a weekday. here, 1-5 is M-F, 6 is Sat, 7 is Sun.
Step 2 then is a simple IFS statement. If 1through 5, then just copy the date. If 6, take the date and subtract one day, i.e. If Saturday, then make Friday. If 7, then subtract 2 days.

Post Photo
like

I like the yellow font on purple, looks sharp! In this case, you could also use SWITCH in place of IFS, but it’s really just personal preference. I think the SWITCH syntax is a little cleaner personally.

like

Also, ask chat gpt really specific questions like this. It has written fantastic customized code for me. And so far it has always gotten the code right too! Including vba code

like

=IF(WEEKDAY(A1 + 180) > 5, WORKDAY(A1 + 180, -1), A1 + 180)
This is assuming you dont want 180 workdays but 180 days. However if that day turns out to be a weekend, you want the preceding workday.

like

In which cases was your existing solution not working? Does one of the provided answers here solve your problem?

like

Related Posts

Just found this bowl! Just getting into cycling .. what would you saw are a few essential items to start with outside of helmet , spare tube, jersey/shorts etc. I was thinking a garmin, or nice lights

One of my frustrations with myself (writing it out here so I can work on it) is that I will print out something that I need, such as a traffic collision report. I will read it without actually reading it. This results in spending time without actually retaining info. Does this happen to anyone else? I’ve found that I can actually focus when I truly force myself, but often this happens after I’ve discovered an error or an important piece of information that I should have noticed earlier.

like

Any advice for a young engineer trying to land their very first job out of college?

likesmart

Anyone hiring for Workday HCM AMS ?

How much should I ask for for an Art Sup role?

like

Hi 🐠, connecting documents for I-485 filling. Any insight on the medical check? I don't have vaccination records. Is this required?

like

I have 7 YOE and applied for a position that is L4. I feel as if I’m overqualified for the position, but the Recruiter told me that when they say L4, they are actually looking for someone with 6+ years of experience. Is this true? I feel like I should be looking at L5 with my experience

like

Two years out of undergrad and already considered a "strong senior" (A2 ->S1 this year) This can't be sustainable for a firm. Where can I go that will actually put me in my place and teach me a lot??

like

Looking for some material for a crash course in IT strategy consulting - books article etc. any recommendations would be appreciated

like

Anyone joining Citi on 5th dec at Pune location?

like

What is your hours worked to hours billed ratio?

like

Hows wlb and projects of HCL Singapore?

like

In how many days, BDO rise give reply to your interview 2nd round? Anyone here from BDO rise here?

Friday is here 🤩

like

Hi all,

Can anyone tell me the joining bonus clause in tiger analytics?

Hi fishes,
I have got the below salary structure from Barclays . Please let me know the in hand salary per month for the same.
Thanks

Post Photo
like

Any one understood what Steve said about compensation and bonus revision yesterday ?

like

Hi All, This is a dedicated bowl for Google Semiconductor India. As Google digital teams in India is growing aggressively. Please join this group to discuss insights :)

Intel Corporation Qualcomm Nvidia Synopsys Inc. Cadence Design System Micron Technology

like

Looking for job opportunity in Poltury or Aquaculture for kolkata West Bengal

like

Additional Posts in Excel Genius

How do I set the formula to calculate “If x falls between 1-10, return 1-10, if it falls between 11-20, return 11-20, and so on”

like

Would anyone be willing to teach me vlookup?

like

Can dates be grouped just by Month-Year in pivot tables on a Mac without having the year as its own dimension?

Post Photo
like

Does anyone from PwC have a list of the favorite groups shortcuts for excel? Please provide. Much appreciated .

like

I created a macro to help me save time on this onetime task and now whenever I open my excel, a blank excel opens with the name of the macro. How do I get rid of it?

like

Current IE here. What are some Time Motion Study Softwares that are out there and you use in your jobs?

like

What’s the best way to summarize multiple amortization schedule. I have each schedule on a separate tab. On a master sheet can I do something where I can input a specific month and show my ST/LT ...

like

Does anyone know what purple tables mean in Excel?

I know about green and orange, but never saw purple before and trying to figure it out.

likefunny

Anyone use power query before? My goal is I have multiple look up values in one cell (separated by comma) and I need it to look up those values and return values from another table which also may have multiple values (separated by comma) anyone know how to do that? I played around with power query today but it wasn’t giving me what I wanted

like

I am trying to recreate this without the numbers at the end. Any advice?

Post Photo
likehelpful

I’m helping my GF with excel and need help lol. She works at a hospital and is trying to make an excel schedule for doctors to reserve rooms. She wants drop downs for days of the week (column K) and also different drop down menus in column P for the reserved time slots.

Is it possible to do this with two sets of drop downs (days of week + time slots) and not use index match here? She could make 5 tables for each day of the week, but prefers one table that can be easily navigated by doctors.

Post Photo
like

Anyone have an app or Excel spreadsheet they use to keep track of utilization? We just switched systems and our new system doesn’t give us a real time balance of our utilization rate (cont)

What are your top excel functions you use in finance / accounting - besides vlookup - Pivots - sumifs - count - index. I have an interview coming up which will have excel based technical questions. Not sure what other functions are considered important in the accounting finance world.

like

I’m referencing a cell (numeric) to a text cell. Is there a way to format that number to include commas? See example in comments.

Hey guys, I'm trying to find a formula to use instead of the Goal Seek function. Anyone know it? I thought I had seen one years ago, but can't find it now.

like

Is there any easy way to handle FedEx/ups tracking numbers? I’d like to have some formula that would just show the status in another cell.

like

Any ideas on turning string data into numerical data in excel that’s faster/easier to automate/better than using text to columns? Wish I could use alteryx, but not an option for this use case.

like

How do I easily find any cells that are hard coded vs formula? I have 10,000 rows of data and column F is supposed to be a formula based on columns C and D, without clicking into all 10k cells in column F how can I make sure formulas are there and not accidentally hand keyed over?

like

Anybody have the SQL server data mining add in on excel? Desperately need to run a really quick analysis through it but can’t configure it.

like

This is dumb, but. How can I pull and average the numbers in column b associated with the 4 values in column a? So, (sum of all As/total number of As) without filtering?

Post Photo
like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal