Avatar of flemingg62
flemingg62 asked on

Formatting a Cell linked to a Pivot Table

Hi  I have a cell linked to a value in a pivot table, once you format the number (to include a , I,e, 1,064) I can no longer center the linked value in the cell.( or Left Justify)
Is they any way I can center the value in the cell

Sample spreadsheet attached.
Book3.xlsx
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Fabrice Lambert

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
flemingg62

Thanks
Rob Henson

I don't see leading spaces at all in the sample. However, I do see that the cell is formatted with Custom formatting:

_-* #,##0_-;-* #,##0_-;_-* "-"??_-;_-@_-

The custom format has four sections separated  by semi-colon
Positive value  -  _-* #,##0_-
Negative value  -   -* #,##0_-
Zero value -  _-* "-"??_-
Text-  _-@_-

The combination of - and _ and * at the start of each section is forcing the format to stay right aligned.

To allow for comma and centre or left aligned use custom format:

#,##0_-;- #,##0_-;_-* "-"??_-;_-@_-
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck