lemonbarley
New Member
- Joined
- Jun 1, 2021
- Messages
- 6
- Office Version
- 365
- 2016
- Platform
- Windows
I have several months' of data in a row, e.g.
I refresh this data every month with current + future months, so next month, Column B will be 1 Mar 2022.
I need to get the average value of each month. I'm currently using =average() and manually moving the range of cells every month for Type A, I would do this 3x for 3 months. Then I copy the formula to Type B and Ctrl+H Replace the row number from 15 to 16.
Specific question: Is there a formula (like Substitute) that can do the Ctrl+H on the formula itself? So Type B values will automatically replace 15 to 16 without me having to Ctrl+H it?
Open question: without using Pivot / Power tools / VBA (i.e. only formula), do you have suggestions on how to get the range automatically after data refresh (which is manual copy and paste) without having to manually move the range? Col A are date format so they can be used as date references.
Thanks!
Col A | Col B | Col C | ... | Col U | Col V | Col W | ||
1 Feb 2022 | 2 Feb 2022 | ... | 28 Feb 2022 | 1 Mar 2022 | 2 Mar 2022 | ... | ||
Row 15 | Type A | 9984 | 9182 | ... | 9374 | 9571 | 10012 | ... |
Row 16 | Type B | 24017 | 23981 | ... | 24231 | 24523 | 24917 | ... |
I refresh this data every month with current + future months, so next month, Column B will be 1 Mar 2022.
I need to get the average value of each month. I'm currently using =average() and manually moving the range of cells every month for Type A, I would do this 3x for 3 months. Then I copy the formula to Type B and Ctrl+H Replace the row number from 15 to 16.
Col A | Col B | Col C |
Type A | Avg Value | Formula |
Feb22 | 9941 | =AVERAGE($B$15:$U$15) |
Mar22 | 9912 | =AVERAGE($V$15:$AR$15) |
Apr22 | 9901 | =AVERAGE($AS$15:$BM$15) |
Type B | Avg Value | Formula |
Feb22 | 24178 | =AVERAGE($B$16:$U$16) |
Mar22 | 24578 | =AVERAGE($V$16:$AR$16) |
Apr22 | 24440 | =AVERAGE($AS$16:$BM$16) |
Specific question: Is there a formula (like Substitute) that can do the Ctrl+H on the formula itself? So Type B values will automatically replace 15 to 16 without me having to Ctrl+H it?
Open question: without using Pivot / Power tools / VBA (i.e. only formula), do you have suggestions on how to get the range automatically after data refresh (which is manual copy and paste) without having to manually move the range? Col A are date format so they can be used as date references.
Thanks!