ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to delete values in each row leaving only last value ? (https://www.excelbanter.com/excel-discussion-misc-queries/76571-how-delete-values-each-row-leaving-only-last-value.html)

Oleg

How to delete values in each row leaving only last value ?
 

I have a table
A B C D E F G H
1| 5 12 14 7
2| 45 1 77
3| 8 74 12 99 47
4| 4
5| 1 12

In result I want to get last value from each row (in column A)
A B C D E F ...
1| 7
2|77
3|47
4| 4
5|12


--
Oleg


------------------------------------------------------------------------
Oleg's Profile: http://www.excelforum.com/member.php...fo&userid=4004
View this thread: http://www.excelforum.com/showthread...hreadid=521183


Dave Peterson

How to delete values in each row leaving only last value ?
 
I put this formula in I2:
=LOOKUP(2,1/(A2:H2<""),A2:H2)
And dragged down

Then I converted that column to values:
edit|copy
edit|paste special|values
and deleted columns A:H



Oleg wrote:

I have a table
A B C D E F G H
1| 5 12 14 7
2| 45 1 77
3| 8 74 12 99 47
4| 4
5| 1 12

In result I want to get last value from each row (in column A)
A B C D E F ...
1| 7
2|77
3|47
4| 4
5|12

--
Oleg

------------------------------------------------------------------------
Oleg's Profile: http://www.excelforum.com/member.php...fo&userid=4004
View this thread: http://www.excelforum.com/showthread...hreadid=521183


--

Dave Peterson


All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com