-
WSBrookBoy
AskWoody LoungerNovember 7, 2002 at 8:55 pm in reply to: Extracting Data Table Formula instead of Value (Excel XP) #630101I think it would help if I knew how to use it. Here is the line of code I used:
Worksheets(“Data Table”).Range(“A5”).Formula = Worksheets(“Data Table”).Range(“D15”)
This gives me the value from D15 in A5, still not the formula as string. What am I doing wrong?
-
WSBrookBoy
AskWoody LoungerI’ll try your suggestion tomorrow as I have to run now. I thank you again for your help and your insights.
I’ll let you know how it all comes out.
Regards,
-
WSBrookBoy
AskWoody LoungerJohn,
Your routine works perfectly. Thanks so much.
Regards,
-
WSBrookBoy
AskWoody LoungerSteve,
Your suggestion didn’t work. I get “Assignment to Constant nor Permitted” errors. When I comment out the Dim (I had dimmed RInput as Range), that error goes away, but then I get a run time error that says “Object required”.
Any ideas?
Thanks,
-
WSBrookBoy
AskWoody LoungerThank you very much. I just could not see it.
-
WSBrookBoy
AskWoody LoungerI had never heard of NUMSONLY either. It was presented to me as a function that comes with the Analysis Toolpak, but after I read your post I went to the MS Technet website and found a list of functions that do come with the Analysis Toolpak and NUMSONLY was not one of them.
There are a number of XLA files that are password protected that load with Excel in this corporate setting, so my guess is that one of them does have NUMSONLY as a User Defined Function.
Thanks for your reply.
-
WSBrookBoy
AskWoody LoungerI do a lot of work with pivot tables but I don’t have a quick answer for this problem. I wouldn’t mind taking a look at it if are able to post it.
-
WSBrookBoy
AskWoody LoungerMy “Brook” is short for Brooklyn, which is where I call home.
Glad I could be of some assistance.
-
WSBrookBoy
AskWoody LoungerI have attached a modified copy of your file with my solution. Basically I created an IF with an OR and a series of ANDs, and I entered the date ranges you mentioned in columns C and D. Otherwise you’d have to use something like the DATE function in the formula, making it more lengthy and more complex.
Hope this helps,
-
WSBrookBoy
AskWoody LoungerI use pivot tables a lot in my job and I am familiar with this message. Basically, there is a limit to the number of items that Excel will place in either a row or a column field. The only remedy if you exceed these limits is to convert one or more row/column fields into page fields. Here is a link to the Microsoft Technet website that shows their Knowledge Base article “Limits of Pivot Tables in Microsoft Excel 2000”:
http://linkURLhttp://support.microsoft.com…US;Q211517&%5B/url%5D .
I can tell you from experience that I have pivot tables that generate that message in Excel 2000, but the same tables run fine in Excel XP.
Basically, your choices are: (1) reduce the number of row/column fields in your table; (2) use page fields wherever possible instead of row/column fields; (3) upgrade to XP.
Good luck,
-
WSBrookBoy
AskWoody LoungerThanks for your reply. Your formula works perfectly, as does Colin’s array formula . I think I’m going to have to study the SUMPRODUCT formula in some detail.
Thanks,
-
WSBrookBoy
AskWoody LoungerThank you for your response. I am really pleased to tell you that your formula works perfectly.
Regards,
-
WSBrookBoy
AskWoody LoungerYet another approach (which we use where I work) is:
1. Create new column.
2. If your new column is E, E1 contains formula “=D1” (without the quotes).
3. Format the new column as “mmm/yy”.
4. Copy–> Edit Paste Special–> Values.You’ll get the same result for your pivot table.
Finally, we also use VBA code to be sure the months appear in the correct order. Here’s a sample of our code (keeping in mind that we call this field “Month” and we use only the first three letters of the month without the year):
On Error Resume Next
With .PivotFields(“Month”)
.PivotItems(“Jan”).Position = 1
.PivotItems(“Feb”).Position = 2
.PivotItems(“Mar”).Position = 3
.PivotItems(“Apr”).Position = 4
.PivotItems(“May”).Position = 5
.PivotItems(“Jun”).Position = 6
.PivotItems(“Jul”).Position = 7
.PivotItems(“Aug”).Position = 8
.PivotItems(“Sep”).Position = 9
.PivotItems(“Oct”).Position = 10
.PivotItems(“Nov”).Position = 11
.PivotItems(“Dec”).Position = 12
End With
On Error GoTo 0We need the error trapping because not all of our reports contain all the months.
Hope this helps.
Regards,
-
WSBrookBoy
AskWoody LoungerThanks for the suggestion; I will pass it along to the user and see if he is interested in such an approach.
I’m curious about file size with this approach. If the user ultimately has as many as 80 or 90 files (or more), how would that affect the file size of the master file? Any ideas?
Thanks again for the suggestion.
Regards,
-
WSBrookBoy
AskWoody LoungerWell, here’s a kind of klutzy but effective way to do it. Have your user create two print areas and store each of them as Views. The first print area can be stored with the repeating rows and the second print area can be stored without the rows. Then use Report Manager to create a print report that will print both print areas in a single report (even with consecutive page numbers, if the user wishes). The thing to remember about using Views is that when you store a print area you also store the page setup settings, so it is necessary to make sure the user first defines the print area correctly, then correctly sets the page setup settings, before saving as a View.
Hope this helps.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Edge Seems To Be Gaining Weight
by
bbearren
1 hour, 40 minutes ago -
Rufus is available from the MSFT Store
by
PL1
8 hours, 8 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
10 hours, 17 minutes ago -
KB5061768 update for Intel vPro processor
by
drmark
6 hours, 31 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
8 hours, 28 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
6 hours, 3 minutes ago -
Office gets current release
by
Susan Bradley
8 hours, 40 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 22 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
1 day, 7 hours ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 23 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
2 days, 9 hours ago -
X Suspends Encrypted DMs
by
Alex5723
2 days, 11 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
2 days, 11 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
2 days, 12 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
2 days, 13 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 1 hour ago -
Enabling Secureboot
by
ITguy
2 days, 8 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 21 hours ago -
No more rounded corners??
by
CWBillow
2 days, 16 hours ago -
Android 15 and IPV6
by
Win7and10
2 days, 6 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
3 days, 9 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
3 days, 12 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
3 days, 6 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 19 hours ago -
May preview updates
by
Susan Bradley
3 days, 6 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 22 hours ago -
Just got this pop-up page while browsing
by
Alex5723
3 days, 11 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
3 days, 8 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
2 days, 10 hours ago -
At last – installation of 24H2
by
Botswana12
4 days, 11 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.