Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Work around with merged cell in Alteryx.

KrishnaChithrathil
11 - Bolide

I've an excel file with merged cells. Dropping the picture below.

 

KrishnaChithrathil_0-1656696186442.png

 

What I'm trying to do is, after loading to Alteryx, copy the 'Name' Jane from 1 to 5. (Jane should come in all 5 row of 'Name' column). similarly, Krishna should appear in 6 to10. Until here, I did it with MULTI-ROW FORMULA TOOL. 

Same logic is working perfectly for column 'Event' and 'Time'. 

 

So the challenge I'm facing here is,

1) This is a sample excel. The data and number of columns are randomly created by me. For each column, I'm using separate Multi-Row Formula Tool. What we'll do if we've 100 columns with merged cells? using 100 multi-row formula tool isn't practical, right? How can I solve this?

 

2) When I'm using this tool, the condition is if isnull([Name]) then [Row-1:Name] else [Name] endif. That is, if a cell is null, that cell will get updated with previous row value. ie. Row-1.

So for row 11, which is not a merged cell, but an empty cell or a null value cell, this also will get updated with Row-1 value. ie. Krishna. Row-1 should only work if it's a merged cell.

 

These are the two challenges I'm facing. Any help would be highly appreciated.

 

 

- Krishna

 

 

10 REPLIES 10
ChrisTX
16 - Nebula
16 - Nebula
KrishnaChithrathil
11 - Bolide

Hey @ChrisTX

Thank you. I tried it with transpose with no success.

 

KrishnaChithrathil_0-1656776416852.png

This is the output I'm expecting. Any help?

 

- Krishna

ChrisTX
16 - Nebula
16 - Nebula

Did you try a multi-row, multi-field macro from some of the other related posts?

OllieClarke
15 - Aurora
15 - Aurora

Hi @KrishnaChithrathil with your second problem, I don't see a way to solve it in Alteryx unfortunately. Maybe you can have an excel macro which will convert all null cells to have a space in them, or something like that, then they won't be read in as nulls in alteryx. Or add a column which flags actual nulls and then you can use that in your logic in your workflow. 

 

I've attached a workflow showing how you can dynamically apply the filling in of merged cells.

 

Hope that helps,

 

Ollie

Emmanuel_G
13 - Pulsar

Hi @KrishnaChithrathil ,

 

Hope you're well !

 

Find a test a ttached with the output you want. 

 

The only one tool you have to edit is summarize by grouping by all the fields of file( in yellow container ). 

 

Let me know if it works ðŸ™‚.

 

Cheers !

 

Emmanuel_G_0-1657538007252.png

 

KrishnaChithrathil
11 - Bolide

@OllieClarke @ChrisTX @Emmanuel_G 

The major challenge here is, when we load our data to Alteryx, the empty cell as well as the merged empty cell is showing as Null. So I'm not able to differentiate which is the empty cell and which is the merged one. 

@OllieClarke The solution provided by you is working. But we need to make changes in the requirement excel, right? I don't know whether I can do that in a customer requirement. And If it is possible can I put some space in all empty cell in one go? If I have 'N' number of columns and rows? And thanks a bunch for spending time for my topic.

 

@Emmanuel_G 

Hello. Than you so much. I studied your workflow. But the thing is you're using a text input, right? How you're differentiating the merged data? Please find the requirement excel screenshot below. 

KrishnaChithrathil_0-1657601244786.png

 

 

Thanks,

Krishna

OllieClarke
15 - Aurora
15 - Aurora

@KrishnaChithrathil it will be possible to have an excel macro, or bit of VBS code which will replace nulls with space (or another specified character). If you can find the VBS to do that, then you can run it from alteryx before inputting your excel with the Run Command tool. 

 

There's more info on that here: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Alteryx-Run-Command-Executing-Excel... (although that script assumes you have an .xlsm file rather than running VBS on a normal .xlsx)

 

Hope that helps,

 

Ollie

Emmanuel_G
13 - Pulsar

@KrishnaChithrathil 

 

In my case, when I import an excel file with merge cells, the value of merged cells is the the first rows which enable to use Mutli-Row Formula to duplicate values below until you get new value.

 

Can you provide us a draft of your file with merged cells to test please ?🙂

 

Cheers !

 

 

OllieClarke
15 - Aurora
15 - Aurora

@Emmanuel_G the issue is that there are un-merged null cells which alteryx can't differentiate. I made a very simple mockup of this yesterday

Labels
Top Solution Authors