Last n cells with text

merchant60b

New Member
Joined
Jul 23, 2018
Messages
5
I am looking for a formula that will display the last, second last and third last cells etc. in a row that have a text value in them.

My spreadsheet contains the results of a sports team in date order across a row. The results are listed as "W" for win, "D" for draw and "L" for loss. There are various blank cells where a team did not play and for future games.

A1 is team name, B1 is the first result all the way up to AR1 which will be the final result of the season.

To create a form guide, I would like a formula that will pull out the last 6 cells with a text value and set out in 6 cells, and will update where a new result is added.

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
To get the last 6 cells maybe...

Formula in AT1 copied across until AY1
=INDEX($B1:$AR1,AGGREGATE(14,6,(COLUMN($B1:$AR1)-COLUMN($B1)+1)/($B1:$AR1<>""),COLUMNS(AT1:$AY1)))

Hope this helps

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,735
Messages
6,180,636
Members
452,992
Latest member
TokugawaIesuma

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