Forum Discussion

Hassan null's avatar
Hassan null
Copper Contributor
Jul 10, 2018

fill in the missing cells

Hello, is there a way to auto convert from Table1 to Table2 below?   Table1 contain a sheet created for a tree map but I need to fill in the missing cells to produce the following CSV text format:

 

top

top,sub1

top,sub1,sub11

top,sub1,sub11,sub12

top,sub1,sub11,sub12,end12

top,sub1,sub11,sub13

…etc

 

Thanks

 

 

 

 

 

Table 1

top

 

 

 

 

 

sub1

 

 

 

 

 

sub11

 

 

 

 

 

sub12

 

 

 

 

 

end12

 

 

 

sub13

 

 

 

 

 

end13

 

sub2

 

 

 

 

 

sub21

 

 

 

 

 

end21

 

 

sub3

 

 

 

 

 

end3

 

 

     
     
     

Table2

    

top

 

 

 

 

top

sub1

 

 

 

top

sub1

sub11

 

 

top

sub1

sub11

sub12

 

top

sub1

sub11

sub12

end12

top

sub1

sub11

sub13

 

top

sub1

sub11

sub13

end13

top

sub2

 

 

 

top

sub2

sub21

 

 

top

sub2

sub21

end21

 

top

sub3

 

 

 

top

sub3

end3

 

 

9 Replies

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor
    Sure.
    - Select all cells (press control+home, followed by control+shift+End)
    - Press F5, click Special
    - Select "Blanks", click OK
    - Press the = sign on your keyboard, press the arrow-up key just once
    - hit control+Enter
    - Select all cells again
    - control+C
    - press Control+alt+V (paste special), choose Values.
    • Hassan null's avatar
      Hassan null
      Copper Contributor

      Thanks Jan but it does not seem to work? I keep getting zeros "0" in the empty cells.

      • JKPieterse's avatar
        JKPieterse
        Silver Contributor
        Did you press the up arrow key immediately after pressing the equal sign, but before pressing control+enter?

Resources