FILTER Formula (maybe?)

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
606
Office Version
  1. 365
Platform
  1. Windows
I have 40 rows in a column "A". The first 20 rows have scores from rounds of golf that I am using to figure out handicaps. I need to extract all of the 20 scores, but when a 21st score is added to the 21st row I delete the score in row 1, so now the 20 scores are from row 2 to row 21. The following week, I add a score to row 22 and remove a score from row 2 making the 20 scores in row 3 to 22. I need a filter (I think) to always extract the 20 posted scores from the column even as I add to the bottom and remove from the top row. I need those 20 scores to show up in column B so I can use the formula to calculate the handicap. Below I will try to show you what I am looking for. I used low numbers to be less confusing

Week 1 there are these 20 scores, score 1 is on row 1 and score 20 is on row 20.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Week 2, score 1 is removed from row 1 and a new score is added to row 21
row 1 is now blank
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

As the 20 scores move down the column, I need to always extract the 20 scores from whatever line they start on to the line 20 rows down. Row 1 to row 20, then next week row 2 to row 21, then row 3 to row 22.

Hope this is not confusing.
Amy help will be appreciated.

James
 
No need to delete the scores you can just use
Excel Formula:
=TAKE(TRIMRANGE(A:A),-20)
 
Upvote 0
Perfect. I just used a range instead of A:A. Thanks.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

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