Offset Help

Scrapyard

New Member
Joined
Mar 7, 2013
Messages
18
Hello,
I'll do my best to explain and provide some examples.

- I have a sorted array of information, including dates in column A.
- I would like to use offset or some other function to put the month with the month changes, such as 28-May-24 is proceeded by 8-Jun-2024, which would put "June" between them.
- I cannot use scripts of any kind thanks to administrative restrictions.
- I have tried to use the offset function, but it produces some close but strange results.

Example:
1736238738309.png

1736238785720.png

1736238831626.png

Formula in AM: =IF(A2<>"",IFERROR(IF(MONTH(A2)<>MONTH(A1),FALSE,TRUE),FALSE),"")
Formula in AN: =IF(AM2<>"",COUNTIF($AM$2:$AM2,FALSE),"")
Formula in AO: =IF(OFFSET($AN2,-$AN2,0)=OFFSET($AN2,-$AN2,0),OFFSET(A2:AC2,-AN2-1,0), TEXT(OFFSET(A2,-AN2,0),"mmmm"))

I appreciate any help you can offer. I hope it is a simple fix.

Thanks!
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
As I posted this, I recognized some of my mistakes and was able to resolve them. However, I'm uncertain how to "end" this. Maybe you know a good strategy to clean this up and have it work indefinately as intended.
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,039
Members
453,521
Latest member
Chris_Hed

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