When "A1" is 1st working day of the month, fill "B1" with "50" else "0"

bobtimmer

New Member
Joined
Dec 6, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
The goal is when "A1" is 1st working day of the month, fill "C1" with "50" else "0"

I have a date in A1. EXAMPLE: 12/1/2023
I have the formula to the right in B1. =A1=WORKDAY(DATE(YEAR(A1),MONTH(A1),0),1)
I have the formula to the right in C1. =IF(DAY(B1) = 1,50,0)

How can I join the formulas in B1 and C1 into a single formula?
 

Attachments

  • SNAG-0035.jpg
    SNAG-0035.jpg
    10.3 KB · Views: 8

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
=WORKDAY(EOMONTH(A1,-1), 1)
A1=WORKDAY(EOMONTH(A1,-1), 1)
then an IF
=IF(A1=WORKDAY(EOMONTH(A1,-1), 1),50,0)

Book1
AB
112/1/2350
212/2/230
311/3/230
Sheet1
Cell Formulas
RangeFormula
B1:B3B1=IF(A1=WORKDAY(EOMONTH(A1,-1), 1),50,0)
 
Upvote 0
Solution
Both work but I could only check one. Thanks so much to both of you!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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