Adding a value after last SPILL value

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
299
Office Version
  1. 365
I have a SPILL formula -- TRANSPOSE(W3#) -- that transposes a vertical column of values from this:

1
2
3
4

To this:

1 2 3 4

When it's done, I'd like it to automatically add another value after the last spilled value like this:

1 2 3 4 OVERALL

My source is dynamic, so sometimes it ends at 4, while other times it can end on 7, 10, or whatever. But either way, I want to add "OVERALL" right after the last value.

Is there a way to do this in the formula?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=LET(r,ROWS(W3#),s,SEQUENCE(,r+1),IF(s<=r,INDEX(W3#,s),"Overall"))
 
Upvote 0
Solution
Do you have TOCOL() available to you?
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=LET(r,ROWS(W3#),s,SEQUENCE(,r+1),IF(s<=r,INDEX(W3#,s),"Overall"))
Fluff, that worked!! Amazing!

I can now see the potential with LET and SEQUENCE. Very cool. Thanks!
 
Upvote 0
Do you have TOCOL() available to you?
Alas, I do not. It seems my employer has yet to upgrade us to a version with many other features I'm currently waiting on. But thank you for stepping in!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Just remove the comma inside the sequence function.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,691
Members
449,117
Latest member
Aaagu

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