how to take colour format of cell by using VSTACK to new sheet

Chaturvedi, Santosh 430 Reputation points
2026-09-17T15:18:31.3866667+00:00

Hello --

The following formula is working,

=SORT(VSTACK(Collective_1!C21#,Collective_2!C21#,Collective_3!C21#,Collective_4!C21#,Collective_5!C21#,Collective_6!C21#,Collective_7!C21#,Collective_8!C21#,Collective_9!C21#),"1",-1)

However

I just want that the VSTACK values from source table, and also want to takes the Colour format of teh cells from the table.

Please advice

Microsoft 365 and Office | Excel | Other | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-09-17T15:18:48.4+00:00

    VSTACK returns the values as a dynamic array. It does not bring cell formatting such as fill color or notes/comments.

    For a formula result, only the values are returned. If the goal is to keep the source cell color, use one of these approaches instead:

    1. Copy and paste manually
      • Create the combined list on a new sheet.
      • Copy each source range and paste it below the previous one.
      • Remove duplicate headers if needed.
      • This preserves formatting because it is a paste operation, not a formula result.
    2. Use VSTACK only for values, then sort or format separately
      • Keep the formula for the combined values:
             =SORT(VSTACK(Collective_1!C21#,Collective_2!C21#,Collective_3!C21#,Collective_4!C21#,Collective_5!C21#,Collective_6!C21#,Collective_7!C21#,Collective_8!C21#,Collective_9!C21#),1,-1)
        
      • Then apply formatting again on the new sheet.
      • If the colors are based on rules, use Home > Styles > Conditional Formatting to recreate them.
    3. If the colors are used for sorting only
      • Excel can sort by Cell Color, Font Color, or Cell Icon from Data > Sort.
      • This works on formatted cells, but it does not mean VSTACK will transfer the formatting.

    If the requirement is to preserve value, format, and note/comment from another sheet, a formula is not enough. Use Copy > Paste Special > All instead.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.