-
WSebenen
AskWoody Loungeryou can try this:
say the data you need to add an = to is in column M. add a column next to it, or anywhere really, and do a concatenate formula:
=concatenate(“=”,M3)
This should give you =Number in your new column (say =56). Then just copy and paste-value (under Paste Special) back into the original column.
If you need to hide the = and it is showing up in the cell, make sure the column M is formatted as a number. Then you can highlight that column and do a find on = and replace with =. This will then “hide” the = (and you’ll just see 56 in the cell, but see =56 in the formula bar).
A screwy way to do it, but it gets the job done.
-
WSebenen
AskWoody Loungeryou can try this:
say the data you need to add an = to is in column M. add a column next to it, or anywhere really, and do a concatenate formula:
=concatenate(“=”,M3)
This should give you =Number in your new column (say =56). Then just copy and paste-value (under Paste Special) back into the original column.
If you need to hide the = and it is showing up in the cell, make sure the column M is formatted as a number. Then you can highlight that column and do a find on = and replace with =. This will then “hide” the = (and you’ll just see 56 in the cell, but see =56 in the formula bar).
A screwy way to do it, but it gets the job done.
-
WSebenen
AskWoody LoungerThank you everyone for your responses. I did check out Chip’s page, and found elements that could work, but wanted to come here first to see what you guys thought about the project. If some of you think this is a little difficult then I have my work cut out for me 😉
I’ll check out everything suggested here, but may come back with more questions
Thanks,
Eve -
WSebenen
AskWoody LoungerThank you everyone for your responses. I did check out Chip’s page, and found elements that could work, but wanted to come here first to see what you guys thought about the project. If some of you think this is a little difficult then I have my work cut out for me 😉
I’ll check out everything suggested here, but may come back with more questions
Thanks,
Eve -
WSebenen
AskWoody LoungerSorry, I didn’t think of that. Is there a reason it has to be in a pivot table?
-
WSebenen
AskWoody LoungerYou can insert functions by right-clicking the pivot table, then choosing Functions, then Calculated Field. You write your formula while double-clicking the Fields where you want them inserted. [This is a great way to add percentages if you need to add them to a table.]
For Median, just type in the Median formula (like you would in a cell) only using the field instead of a range, so if you wanted a Median of a bunch of scores and the field name is Scores, then it would look like =Median(Scores).
Hope this helps!
Eve
-
WSebenen
AskWoody LoungerWhen creating pivot tables, make sure you uncheck the Save Data with Table Layout in the Options section. If the box is checked, that means it will save your data with EACH pivot table — meaning your spreadsheet was “duplicated” 5 times! When you uncheck the box it will always refer back to your original data and save you precious memory!
Another box I always uncheck is the AutoFormat Table option. If you leave it checked and have multiple pivot tables on one spreadsheet, it will resize the columns to fit the last pivot table you refreshed, which can be a big pain depending on what you’re doing.
Don’t give up on pivot tables — they make life very easy (esp. by saving time) once you get to know them!
-
WSebenen
AskWoody LoungerThank you, Rory, however this inserts spaces at odd points in all cap names. For example, in SKW-MBT it will change it to SK W-MB T. To make myself understand and learn this code, I fiddled with it until it came out right. I think it incorporates your code with Legare’s. Here’s what I came up with:
Sub AddSpaces()
Dim rngCell As Range, intPos As Integer, strText As String
Dim strCheck As String, strCheck2 As String
Dim intAsc As Integer, intAsc2 As IntegerFor Each rngCell In Selection
strText = rngCell
‘Len counts the number of characters in string
‘intPos will then equal number of characters in string
For intPos = Len(strText) To 2 Step -1
‘Mid returns specified number of characters in string
‘so this will return last character in first loop
strCheck = Mid(strText, intPos, 1)
‘Asc returns the character code
‘”A” = 65, “Z” = 90, “a” = 97, “z” = 122
intAsc = Asc(strCheck)
Select Case Asc(strCheck)
‘if lowercase, then next intPos
Case Is > 96
Case Else
‘if strCheck is uppercase, then strCheck2 will equal character to the right
strCheck2 = Mid(strText, intPos + 1, 1)
‘if last character then will move to next intPos
If strCheck2 “” Then
intAsc2 = Asc(strCheck2)
Select Case Asc(strCheck2)
‘if uppercase then next intPos
Case Is < 97
Case Else
'if lowercase then inserts space
strText = Mid(strText, 1, intPos – 1) & " " _
& Mid(strText, intPos)
End Select
End If
End Select
Next intPos
rngCell = strText
Next rngCell
'Inserts spaces around "-"
Cells.Replace What:="-", Replacement:=" – "
'Inserts spaces around "&"
Cells.Replace What:="&", Replacement:=" & "
'Deletes any double spaces
Cells.Replace What:=" ", Replacement:=" "
End SubI did the intAsc so I could watch what was happening in the Locals window — otherwise I couldn't figure out what was going wrong.
Anyway, thank you for your help, everyone, as I feel like I'm finally learning what this "VBA jibberish" means!
Eve
-
WSebenen
AskWoody LoungerThanks, everyone! You guys rule
-
WSebenen
AskWoody LoungerThanks, Rory — this is very helpful!
As extra credit (ha ha), how would you change it so that it would only put spaces before a cap letter if the letter before it was lower case? This way it wouldn’t put spaces in-between caps (like TRW).
Sorry, I thought of this after.
-
WSebenen
AskWoody LoungerI’ve done that for the interim, but I’d really like to add the spaces eventually so we don’t have to remove them each time. Plus it’s easier to read for longer company names.
Thanks!
-
WSebenen
AskWoody LoungerCan you please explain how the mod function is helpful? I’ve seen you guys use it and I just can’t seem to figure it out. Like what’s the logic of it in this instance?
Thanks,
Wanting to Learn More -
WSebenen
AskWoody LoungerI was able to figure this out (you forgot to mention the equals sign). Unfortunately it doesn’t work going down as well, however I was able to redo my subtotals so they total on the top instead of the bottom (there’s a check box for that) and then using this on my new data. Piece of cake!
Thanks very much!
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
55 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
8 hours, 31 minutes ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
12 hours, 30 minutes ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
12 hours, 31 minutes ago -
Unable to eject external hard drives
by
Robertos42
12 hours, 8 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
5 hours, 49 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
25 minutes ago -
Synology limits hard drives
by
Susan Bradley
1 day, 16 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
19 hours, 9 minutes ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
1 day, 22 hours ago -
Upgrade Sequence
by
doneager
1 day, 16 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 16 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
14 hours, 56 minutes ago -
The incredible shrinking desktop icons
by
Thumper
2 days, 19 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
2 days, 21 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 16 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 6 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
2 days, 11 hours ago -
Speeding up 11’s search
by
Susan Bradley
18 hours, 59 minutes ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
1 day, 6 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
3 days, 20 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 4 hours ago -
24H2 fixed??
by
CWBillow
2 days, 20 hours ago -
Uninstalr Updates
by
jv16
4 days, 9 hours ago -
Apple zero days for April
by
Susan Bradley
6 hours, 2 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
5 days, 8 hours ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
4 days, 15 hours ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
4 days, 22 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.