Return last number in a Row Range

Tonyd789

Board Regular
Joined
Feb 6, 2011
Messages
89
Hi All

i have a basic table with months across the top and topics down the right side, each 1 of those topics scores a point each month. i'm after a formula that will return the last score for a topic in each row.

Can someone please help me.

Regards
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
adjust cells to fit your data and copy down. The lookup value, 99999999999 in this example, should be larger then any score you will enter.
Code:
=LOOKUP(99999999999,B2:M2)
 
Upvote 0
Try. once again the 99999999999 needs to be larger then any score you would enter.
Code:
=INDEX(B2:M2,MATCH(99999999999,B2:M2,1)-1)
 
Upvote 0
Returns a value of 0, September scored 9 Aug scored 8, should be returning the august score.

This is my formula =INDEX(D9:AC9,MATCH(101,D9:AC9,1)-1)
 
Upvote 0
Does every column have a value?

is your data
Jan
Feb
Mar
8
5
7

<tbody>
</tbody>


Or is it
JanFebMar
857

<tbody>
</tbody>

Can you post a sample of your data
 
Upvote 0
Its very much like your first example, however there may be certain months that may have no score.
 
Upvote 0
With out seeing sample data I do not know why you are getting zero, you should only get zero if the second to last is blank or zero. To account for the possibility that the second to last will be blank and return the last score this should work. If there is no second to last, only one score entered, then the formula will return blank.


This is an array formula and must be entered with CONTROL+SHIFT+ENTER. If done correctly Excel will put {} around the formula.
Code:
=IFERROR(INDEX(D9:AC9,LARGE(IF(D9:AC9<>"",COLUMN(D9:AC9)-COLUMN(D9)+1),2)),"")
 
Upvote 0

Forum statistics

Threads
1,221,527
Messages
6,160,342
Members
451,638
Latest member
MyFlower

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