Multiple formulas in same cell

c.clavin

Board Regular
Joined
Mar 22, 2011
Messages
126
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hey guys, new to Excel, new to these forums!

I have a problem writing a formula out for 1 cell.
On 1 hand, I need to make a formula that 1 cell is 2 workdays after another cell (=WORKDAY(D11,2, '*'!B2:B15) but I also have a time requirement, where if it is after 4:30pm it needs to be 3 workdays after the other cell, due to processing issues.

I have a formula, pointing to a different cell in case it is after 4:30 (=IF(NOW()>1630,D11+3)

How do I couple these 2 formulas into one cell so I dont have to make 2 different boxes? Any help would be appreciated. It aggravates me that both work, but I cant incorporate them together. This forum is the best!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hey guys, new to Excel, new to these forums!

I have a problem writing a formula out for 1 cell.
On 1 hand, I need to make a formula that 1 cell is 2 workdays after another cell (=WORKDAY(D11,2, '*'!B2:B15) but I also have a time requirement, where if it is after 4:30pm it needs to be 3 workdays after the other cell, due to processing issues.

I have a formula, pointing to a different cell in case it is after 4:30 (=IF(NOW()>1630,D11+3)

How do I couple these 2 formulas into one cell so I dont have to make 2 different boxes? Any help would be appreciated. It aggravates me that both work, but I cant incorporate them together. This forum is the best!
=WORKDAY(D11,2, '*'!B2:B15)

That's an invalid sheet name?

Try something like this...

=WORKDAY(D11,2+(MOD(NOW(),1)>TIME(16,30,0)), Sheet_Name!B2:B15)

Replace Sheet_Name with a valid sheet name!
 
Upvote 0
Wow that was so fast..and so dead on. Thank you so much.
If I dont want to skip over specific days of the year, do you know how I would add it? like 'dont include the 3 if its july 4th' something like that. Last question. You helped me out so much, thanks again.
 
Upvote 0
Wow that was so fast..and so dead on. Thank you so much.
If I dont want to skip over specific days of the year, do you know how I would add it? like 'dont include the 3 if its july 4th' something like that. Last question. You helped me out so much, thanks again.
If I understand what you're asking then you would add the date you want to skip to the holidays list.
 
Upvote 0
It's kind of strange, theres 2 days processing, sometimes if a holiday lands on the first day, you only skip 1 day extra, if its on the 2nd day, you skip two. Probably not possible to create a formula for such things, like specific rules for specific dates.
But I actually had 1 more question, sorry. How would I create a function where if said date is a weekend, it would add 3 days (like after 4:30 on weekdays) I promise I will get out of your hair after this! Thanks again!
 
Upvote 0
It's kind of strange, theres 2 days processing, sometimes if a holiday lands on the first day, you only skip 1 day extra, if its on the 2nd day, you skip two. Probably not possible to create a formula for such things, like specific rules for specific dates.
But I actually had 1 more question, sorry. How would I create a function where if said date is a weekend, it would add 3 days (like after 4:30 on weekdays) I promise I will get out of your hair after this! Thanks again!
Which date? The date in D11?
 
Upvote 0
Yes, like if d11=monday then the date would be +2 workdays, but if d11=sat or sun, it would be +3 workdays. Strange system, I know.
 
Upvote 0
Yes, like if d11=monday then the date would be +2 workdays, but if d11=sat or sun, it would be +3 workdays. Strange system, I know.
Maybe this...

=WORKDAY(D11,2+OR(MOD(NOW(),1)>TIME(16,30,0),WEEKDAY(D11,2)>5), Sheet_Name!B2:B15)
 
Last edited:
Upvote 0
thanks, that works. How would I add an if statement to that formula? Not used to working with logic in excel. Have a few other statements I need to add, and then it will be flawless.
 
Upvote 0
Thank you so much for all of your help. You have made my spreadsheet from good to unbelievably good with the few formulas you've given me. I actually bought an Excel how-to book, but it barely scratches the surface of what there is to know.
My question is, in your formula, is there anyway to create exceptions to the rules outlined? If on say March 27th, if instead of skipping 3 days (weekend) if you wanted that particular date to skip say 5 days, is there anyway to write an exception for a few days out of the year? There are oddities that come up, and this would 'unturn' every 'odd' 'stone for the spreadsheet. I really appreciate all of your help, would you recommend any books to me for future learning? Thanks again, and have a great rest of the weekend. :)
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top