Google Spreadsheet Formula to get last value in a row

Viewed 42175

I wondered if someone could help me with what I hope is a simple Formula.

I have a simple spreadsheet for Product which has a column for the product name eg

Product A

Product B

Product C

Product D

Now on each row there are some numerical values

eg

Product

Product A 5.0 2.5

Product B 6.0

Product C 2.0 4.0 5.0

Product D 3.0

Product E 6.0 2.0 1.6 2.9

Now what I want is to have a formula for a Column next to the prouct that shows me the value of the last entered value for a Product eg the Values in the above example would give me

Product A 2.5

Product B 6.0

Product C 5.0

Product D 3.0

Product E 2.9

In Excel I would do this with INDEX and MATCH however I cannot get this to work in Google Spreadsheets.

Any ideas would be most welcome.

Here is a screenshot of what I would like it to look like. http://i.imgur.com/jqcNW.png

Many thanks in advance

6 Answers

This will return the value of the 1st column and last row of a range named RangeName:

=INDEX(RangeName, ROWS(RangeName), 1)

where RangeName is the name or range you are looking at. ROWS returns the number of rows in that range.

Related