cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
dadawasozo
Level IV

break a single column into multiple based on empty row or specific character

Hi,

can someone provide advice?

I have a column with structure below:
1

2

3

 

a

b

c

d

e

f

 

xx

yy

zz

is it possible to divide to multiple columns based on empty row (or a repeated same character) 

1 a xx

2 b yy

3 c zz

   d

   e

   f

2 REPLIES 2
Thierry_S
Super User

Re: break a single column into multiple based on empty row or specific character

Hi,

One way to achieve this is creating an indicator column with the formula below:

If( Row() == 1,
	1,
	If( Is Missing( Lag( :Column 1, 1 ) ),
		Lag( :SPLIT, 1 ) + 1,
		Lag( :SPLIT, 1 )
	)
)

And then split your original column (Split Table) using the new indicator column as Split By variable (see attached)

I hope it helps.

Best,

TS 

Thierry R. Sornasse
dadawasozo
Level IV

Re: break a single column into multiple based on empty row or specific character

Hi TS, This is helpful. Thanks for your reply.

Recommended Articles