returning last (numeric) value in a row, coping with blanks in the row.

slamanager

Board Regular
Joined
Apr 20, 2007
Messages
129
Hi,

Just a quick one, whats the best formula (non array) to use to locate and return the last number on a row.

I have data starting in Column C up to Column K - for Rows 3 - 20
In col B i have this formula =IFERROR(INDEX(C3:K3,COUNT(C3:K3)),"")

Which works and returns the last number in the row but if there is a blank cell between C and K then it wont find the last number just the number after that blank.

Example

_,4,1,1,1,1,4
_,4,2,2,4
_,4,3,_,4,_5

how do i get the last example to show
_,5,3,_,4,_,5

the last number may not be a large number in every example.
?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi,

Just a quick one, whats the best formula (non array) to use to locate and return the last number on a row.

I have data starting in Column C up to Column K - for Rows 3 - 20
In col B i have this formula =IFERROR(INDEX(C3:K3,COUNT(C3:K3)),"")

Which works and returns the last number in the row but if there is a blank cell between C and K then it wont find the last number just the number after that blank.

Example

_,4,1,1,1,1,4
_,4,2,2,4
_,4,3,_,4,_5

how do i get the last example to show
_,5,3,_,4,_,5

the last number may not be a large number in every example.
?

Try...

=IFERROR(LOOKUP(9.99999999999999E+307,C3:K3),"")
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

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