Remove blank cell of rows and shift the rest to left

mehrana

New Member
Joined
Aug 1, 2024
Messages
19
Office Version
  1. 365
Platform
  1. Windows
I have a table with 60+ columns. More data is periodically added (using Microsoft form) to this table. There are / will be many blank cells in each row (80% of the entire cells). Instead of this very wide table, I need to display only the data on a screen without the blank cells. The screen can of any kind, such as another table with the blank cells removed and data cells are shifted to left. It will be great if this can done automatically each time when a new row is added or more data is added to cells (on left side of the existing).

I appreciate any help you can provide.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
You would need to upload to a cloud storage and share the link here.
 
Upvote 0
You would need to upload to a cloud storage and share the link here.

You would need to upload to a cloud storage and share the link here.
Here is link to the file in Google drive folder:

Please let me know if it worked.
As I explained, this is an online file and the data is entered by a Microsoft Form. There are 2 date/time columns, one for when the form was started and the second for when the form was completed. They are built-in to the form and I do not have any access to or option to remove them. I noticed yesterday that the completion date/time showing differently in excel file.
 
Last edited:
Upvote 0
Oh the cell returns the string instead of the numeric value. That's why.

Here is the corrected formula:

Excel Formula:
=LET(t, OfficeForms.Table,
tj, BYROW(t, LAMBDA(x, TEXTJOIN("|", 1, x)&"|")),
res, DROP(REDUCE("", tj, LAMBDA(arr,new, VSTACK(arr, TEXTSPLIT(new, "|")))), 1),
IFERROR(IFERROR(VALUE(res), res), "")
)

Let me know if this works for you.
 
Upvote 0
Oh the cell returns the string instead of the numeric value. That's why.

Here is the corrected formula:

Excel Formula:
=LET(t, OfficeForms.Table,
tj, BYROW(t, LAMBDA(x, TEXTJOIN("|", 1, x)&"|")),
res, DROP(REDUCE("", tj, LAMBDA(arr,new, VSTACK(arr, TEXTSPLIT(new, "|")))), 1),
IFERROR(IFERROR(VALUE(res), res), "")
)

Let me know if this works for you.
Thank you, yes it's working well right now.
Is there anyway I can change format of this view table? like applying table design formats?
 
Upvote 0
Thanks for the feedback. Happy to help.
You can format it as needed. Only thing you can't do is "Format as table".
1723221515826.png


But you could copy the format from another table and paste just the format or with the format painter.
 
Upvote 0
Thanks for the feedback. Happy to help.
You can format it as needed. Only thing you can't do is "Format as table".
View attachment 115209

But you could copy the format from another table and paste just the format or with the format painter.
The only issue is I have too select a range for those format, and it does not apply to new rows as they get added to the view table each time a form is submitted.
Another issue is, I added a check box to the main sheet/table, and it shows as TRUE / FALSE in the view form!
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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