-
WSchipshot
AskWoody LoungerYou could do =left(a1,search(“,”,a1)-1). This assumes there’s only 1 comma in each name. To get the first name, you could do =right(a1,len(a1)-search(“,”,a1))
-
WSchipshot
AskWoody LoungerTo make the chart fit to paper, you want the chart to be a sheet as opposed to being an object on a sheet. Just right click on the chart, select Location, and choose “As New Sheet”.
To change the order of the data, just right click on any one of the bars. Click on Format Data Series. One of the tabs you will get at the top is “Series Order”. You can rearrange the sequence of bars there.
Results are attached.
This was done in Excel97.
-
WSchipshot
AskWoody LoungerTo make the chart fit to paper, you want the chart to be a sheet as opposed to being an object on a sheet. Just right click on the chart, select Location, and choose “As New Sheet”.
To change the order of the data, just right click on any one of the bars. Click on Format Data Series. One of the tabs you will get at the top is “Series Order”. You can rearrange the sequence of bars there.
Results are attached.
This was done in Excel97.
-
WSchipshot
AskWoody LoungerNot sure what you mean by autofill, but here’s a quick way to get what you need, and it’s easily expandable as you add more rows.
Type 1/31/89 in cell A1. In cell A2, type =A1. Copy this down the column 3 more times. In cell A6, type =eomonth(A1,1). Format all 6 cells as M-YY. Now just drag cell A6 down the column as many times as you need.
-
WSchipshot
AskWoody LoungerNot sure what you mean by autofill, but here’s a quick way to get what you need, and it’s easily expandable as you add more rows.
Type 1/31/89 in cell A1. In cell A2, type =A1. Copy this down the column 3 more times. In cell A6, type =eomonth(A1,1). Format all 6 cells as M-YY. Now just drag cell A6 down the column as many times as you need.
-
WSchipshot
AskWoody LoungerI’m a self-taught VBA guy, but one thing I’ve learned is to never use a cell reference in VBA if at all possible. One of your first lines is range(“af1”).select. If someone inserts a row or column, the cell refs in your VBA will no longer be correct. If possible, it’s better to use range names in your VBA. In your example, it looks like you’re receiving data from someone else and you want to automate adding some formulas to it, so it may not make sense to create a range name.
It looks to me like you’re looking down Column B until you get to CGS. For each row, if column AF has “PST”, then update running total dsub5 with the value in column Y and dsub6 with the value in column AB. I’m not sure this is best solved using a macro. Have you tried using the SUMIF function? Perhaps =SUMIF($AF1:$AF50,”PST”,Y1:Y50) at the bottom of column Y and then copy it over to the bottom of column AB.
You can delete the ELSE line if there’s nothing to do when Activecell.value “PST”
You can simplify the formatting part of your macro a little bit:
With Selection
Interior.ColorIndex = 6
Font.Bold = True
.Borders(xlEdgeTop).LineStyle = xlContinuous
End WithI’m not sure how many rows of data you have to process, but if it’s thousands, you can speed up execution by putting Application.Screenupdating=False at the beginning of your macro and Application.Screenupdating=True at the end. This turns off redrawing the display during execution.
-
WSchipshot
AskWoody LoungerI’m a self-taught VBA guy, but one thing I’ve learned is to never use a cell reference in VBA if at all possible. One of your first lines is range(“af1”).select. If someone inserts a row or column, the cell refs in your VBA will no longer be correct. If possible, it’s better to use range names in your VBA. In your example, it looks like you’re receiving data from someone else and you want to automate adding some formulas to it, so it may not make sense to create a range name.
It looks to me like you’re looking down Column B until you get to CGS. For each row, if column AF has “PST”, then update running total dsub5 with the value in column Y and dsub6 with the value in column AB. I’m not sure this is best solved using a macro. Have you tried using the SUMIF function? Perhaps =SUMIF($AF1:$AF50,”PST”,Y1:Y50) at the bottom of column Y and then copy it over to the bottom of column AB.
You can delete the ELSE line if there’s nothing to do when Activecell.value “PST”
You can simplify the formatting part of your macro a little bit:
With Selection
Interior.ColorIndex = 6
Font.Bold = True
.Borders(xlEdgeTop).LineStyle = xlContinuous
End WithI’m not sure how many rows of data you have to process, but if it’s thousands, you can speed up execution by putting Application.Screenupdating=False at the beginning of your macro and Application.Screenupdating=True at the end. This turns off redrawing the display during execution.
-
WSchipshot
AskWoody LoungerI thought I’d play around with Excel 97’s limits for internal calcs and tried the following:
cell A1: =VALUE(“1234567890123456”)
cell B1: various values
cell C1: =A1+B1When B1=5, C1=1,234,567,890,123,450
When B1=6, C1=1,234,567,890,123,460
When B1=5.12, C1=1,234,567,890,123,450
When B1=5.13, C1=1,234,567,890,123,460Can you explain this?
-
WSchipshot
AskWoody LoungerI thought I’d play around with Excel 97’s limits for internal calcs and tried the following:
cell A1: =VALUE(“1234567890123456”)
cell B1: various values
cell C1: =A1+B1When B1=5, C1=1,234,567,890,123,450
When B1=6, C1=1,234,567,890,123,460
When B1=5.12, C1=1,234,567,890,123,450
When B1=5.13, C1=1,234,567,890,123,460Can you explain this?
-
WSchipshot
AskWoody LoungerThanks, Legare. I stand corrected. I guess I’ve never had to deal with numbers over 999 trillion. Hopefully the original poster is dealing with part numbers or something and not the number of parts he needs to produce.
-
WSchipshot
AskWoody LoungerThanks, Legare. I stand corrected. I guess I’ve never had to deal with numbers over 999 trillion. Hopefully the original poster is dealing with part numbers or something and not the number of parts he needs to produce.
-
WSchipshot
AskWoody LoungerSeptember 24, 2003 at 7:57 pm in reply to: % chg from neg to positive not working (Excel 2000) #719580No offense taken, whatsoever.
I wonder if we scared away the original poster?? -
WSchipshot
AskWoody LoungerSeptember 24, 2003 at 7:57 pm in reply to: % chg from neg to positive not working (Excel 2000) #719581No offense taken, whatsoever.
I wonder if we scared away the original poster?? -
WSchipshot
AskWoody LoungerI don’t know about Access, but in Excel the number shouldn’t be changed at all. If you make the Excel column wider, I suspect that you will see the correct number. You could also click on a cell and see what number shows up in the formula bar.
I’ve only done a little bit with Access, but I suspect it wouldn’t change the number either.
-
WSchipshot
AskWoody LoungerI don’t know about Access, but in Excel the number shouldn’t be changed at all. If you make the Excel column wider, I suspect that you will see the correct number. You could also click on a cell and see what number shows up in the formula bar.
I’ve only done a little bit with Access, but I suspect it wouldn’t change the number either.
![]() |
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
-
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
6 hours, 22 minutes ago -
Office apps read-only for family members
by
b
8 hours, 58 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
5 hours, 50 minutes ago -
24H2??
by
CWBillow
1 hour ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
17 hours, 44 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
10 hours, 57 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
5 hours, 47 minutes ago -
two pages side by side land scape
by
marc
2 days, 6 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 8 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 11 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 14 hours ago -
April 2025 updates out
by
Susan Bradley
9 hours, 28 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 7 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
21 hours, 56 minutes ago -
Creating an Index in Word 365
by
CWBillow
2 days ago -
Coming at Word 365 and Table of Contents
by
CWBillow
12 hours, 30 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 3 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 7 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 9 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 7 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
3 days ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 6 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 12 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
5 hours, 55 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 20 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 5 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 5 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 13 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 22 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
21 hours, 56 minutes 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.