Cell Format on grouped sheets

19 views
Skip to first unread message

James Shaw

unread,
Dec 11, 2024, 12:51:44 PM12/11/24
to Google Sheets Community
So, I have 3 sheets displaying into 1 Master Sheet.

On the Master sheet - one column only it will only display numbers #####. If I enter a value that has letters, it will not display on the master sheet (AB#####) but will show on the other sheets.

Any way I can get it to display anything?

Hassam Saeed

unread,
Dec 12, 2024, 9:08:41 PM12/12/24
to Google Sheets Community
Hi James,
You may need to share more details about the formulas or scripts being used in the master sheet to help others better understand your issue.

James Shaw

unread,
Dec 16, 2024, 2:43:37 PM12/16/24
to Google Sheets Community
Ok,  Here  is the formulas I am using.

=QUERY({IMPORTRANGE(X2,AA2);IMPORTRANGE(X3,AA3);IMPORTRANGE(X4,AA4)},"Where Col1 is not null ORDER BY Col2")

It works fine. Everything thing is displayed correctly, It just one column only will display number (####) when I need to to display a combo of number and letter (AB###)
I've a screen shot showing the Red Arrow:

This is the master sheet missing the data in the column 
 Untitled1.bmp

This is the working sheet with the data in the column
Untitled2.jpg

Hassam Saeed

unread,
Dec 16, 2024, 3:01:05 PM12/16/24
to Google Sheets Community
Gotcha. Thanks for sharing the details.
As per the Query documentation:
Each column of data can only hold boolean, numeric (including date/time types) or string values.
In case of mixed data types in a single column, the majority data type determines the data type of the column for query purposes. Minority data types are considered null values.

The solution is to convert that particular column to string/text datatype. You can do that via Format>Plain Text and if that still causes some issue then use the to_text() function to convert that column to text.
Lastly, in your query formula, its also recommended to use the header(last argument) explicitly i.e. in your scenario it will be 0.  

Let me know if that helps.

Thanks
Hassam Saeed
GSheets.com

James Shaw

unread,
Dec 23, 2024, 1:03:32 PM12/23/24
to Google Sheets Community
Thank You. I have been playing around with this. I've changed the column to 'plain text' and still nothing. I just don't understand how other column's are able to have mix data type and this one not. is it because its in a format of AA#### and other is like a address 123 Street Ave?

I'm also Adding the '0' for headers.

Reply all
Reply to author
Forward
0 new messages