Inserting rows is upsetting CountA Offset formula, don't know how to correct!

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hi

Below are the earliest dates from my fitness diary that as of today's date has 7738 rows and excludes rest dates. Columns A1:G23 are shown and the date entries begin in row A12. Please note that there are formulas in some of the blank cells which are in white font as I didn't want them to be visible.

I now need to insert 889 rows for the rest dates (from Row 882 on 26 Oct 2002 the dates were all consecutive), but I've soon found that inserting the rows causes the existing CountA Offset formula in B10 that 6 other cells are dependent on to return incorrect results, and because somebody else kindly supplied the formula I don't have the knowledge to correct it.

This is the formula: COUNTA(OFFSET(A12, 0, 0, A2-36684))

I can't relate to the '36684' number or else I could probably resolve this myself.

I'd be very grateful for a solution.

Many thanks

Last saved 6:56pm, 27.9MbACTIVITYThis Wk's MilesThis Wk's TimeThis Wk's PaceMLS TO NEXT Y/E TOT
3 August 2021WK 31 EXERCISE TO DATE151hr 00mN/A12
DAYS GONE THIS YRWK 31 RUNNING TO DATE00hr 00m(2012 Total)
215YEARS---------------->20212020DIFF. +/-Lifetime/40 Years
EXERCISE DAYS LEFTNo. MILES RUN YTD---->120327-20727,648
150No. RUNS YTD--------->1648-325,526
Sun 01.08.21Sun 25.07.21Sun 18.07.21002/12/1961
0 Day Exercise StreakLONGEST DISTANCE RUN DATE IN 2021SUN 4 JUL14.1
2 Days Since Last RunLONGEST DURATION RUN DATE IN 2021SUN 4 JUL3:41:10
Fri 25.02.21
DATEROUTEDISTTIMEPACEAVE HR% MAX
Thu, 1 Jan 1998Sutton Park6.00:47:407:57
Sun, 4 Jan 1998Sutton Park Full Circuit8.21:15:369:13
Sun, 11 Jan 1998Sutton Park6.50:52:088:01
Tue, 20 Jan 1998West Bridgford7.30:58:147:59
Fri, 27 Feb 1998Pype Hayes Park4.00:38:509:43
Sun, 8 Mar 1998Sutton Park Full Circuit8.21:12:148:49
Sun, 15 Mar 1998Sutton Park6.30:50:147:58
Tue, 17 Mar 1998Sutton Park4.40:34:527:55
Sun, 22 Mar 1998Sutton Park Full Circuit8.21:01:287:30
Fri, 27 Mar 1998Sutton Park6.00:48:128:02
Sun, 29 Mar 1998Sutton Park4.40:35:228:02
Mon, 30 Mar 1998Sutton Park5.00:40:228:04
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
So its counting filled cells from A12 downwards. The part using the date and -36684 is there to increment the number of cells included by 1 daily. Currently you are offsetting A12 by 7727 cells. If you want more cells included then the 36684 needs to be smaller.
 
Upvote 0
So its counting filled cells from A12 downwards. The part using the date and -36684 is there to increment the number of cells included by 1 daily. Currently you are offsetting A12 by 7727 cells. If you want more cells included then the 36684 needs to be smaller.
Thanks! Is it as simple as reducing 36684 by 889?
 
Upvote 0
Hey, I've just inserted 6 rows and reduced the the 36684 to 36678 and all's well!

Thank you so much for your help Steve, that means a lot to me.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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