Need help in Colored cell

Santosh080

Board Regular
Joined
Jul 15, 2016
Messages
77
Office Version
  1. 2021
Platform
  1. Windows
Hello Friends,

I have a excel sheet like this where some dates are colored. I want number days (30, 31 etc.) agaist that colored date 's month like below. i have huge amout data so i can not do mannualy. Is there any formula for this?

Thanks

DatesDebitCreditInterestNo of Days
01-04-2011
23-04-2011100000
30-04-201100747.1230
12-05-20111000000
14-05-201120000000
26-05-20111000000
31-05-2011002459.3831
02-06-20112500000
10-06-20112100000
13-06-20115000000
18-06-201110200000
23-06-2011200000
30-06-2011003877.6930
07-07-20116000000
13-07-20112500000
31-07-2011000
03-08-2011248200
03-08-2011600000
10-08-20113000000
12-08-20111500000
20-08-20111500000
25-08-20112500000
31-08-2011000
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
And if you want them only at the end of the month dates then

Excel Formula:
=Ifs(A2=EOMONTH(A2,0),EOMONTH(A2,0)-Eomonth(A2,-1),True,"")
 
Upvote 0
Solution

Forum statistics

Threads
1,224,813
Messages
6,181,111
Members
453,021
Latest member
Justyna P

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