How to use something equivalent to the TOCOL function in excel in Calc

Hi,

Is there anything equivalent to the TOCOL function in Excel for Calc?
What I’m trying to do is:

I have values in A1, A2, A3 and so on, going down the A column.I also have values in B1, B2, and so on going down the B column.

Say for example A1 = 3, A2 = Hi, B1 = 56, B2 = Penguin

I would like to have a formula in C1 that makes column C to look like this:
C1 = 3, C2 = Hi, C3 = 56, C4 = Penguin

There are periodically values added at the bottom of columns A & B, so the formula in C1 has to include the totality of columns A and B and ignore the blanks at the bottom.

In Excel I could use the TOCOL function with the following formula:

=tocol(A:B,1,TRUE)

In the above formula 1 is to ignore blanks and True is to read by column instead of by row.

Thanks!

Maybe the TOCOL function :speak_no_evil: (since Lo 25.8)

I had seen that it had been implemented, but I keep getting an error ( #NAME? ). I had (maybe incorrectly) assumed the function wasn’t working…
In that case I’m a bit lost as to why I’m getting the error.

Please paste here the information in Menu>Help>About LibreOffice.

(There is an icon in the center to copy the information).

Version: 25.2.7.2 (X86_64) / LibreOffice Community
Build ID: 5cbfd1ab6520636bb5f7b99185aa69bd7456825d
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26200); UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-GB
Calc: CL threaded

As Karolus mentioned above, this function was introduced in version 25.8 so you would need to upgrade to that or a later version to be able to use the function.

1 Like

Yeah, I noticed straight after posting. Weird, because I was pretty sure it was up to date, that’s why I didn’t even consider looking at the version. I’ll update and see if it works and then post back. Thank you

Please take care of
Bug 168236 - vstack, hstack, tocol, torow short parameters format failure

It worked now. Damn, I didn’t realize that I just had to update. Thank you all for your time.