-
WSshades
AskWoody LoungerOr you could set up a small table elsewhere and use the LOOKUP function, or for more versatility, INDEX/MATCH combo.
-
WSshades
AskWoody LoungerNote, I updated my post after you posted. If possible you can change the headers in row 3, to be the first day of month, then use those as references in your formula.
Then change the formatting to Custom, mmmm, and they will appear as month names.
-
WSshades
AskWoody LoungerHowdy. You can add an IF wrapper around it (simplified) (Sorry, after looking at sheet, you have that)
I changed the SUMPRODUCT, and changed the headers in row 3. This is in G4
=IF($F4=””,””,SUMPRODUCT(($C$4:$C$148=$F4)*($D$4:$D$148>=G$3)*($D$4:$D$148<H$3)))
Seems to work
-
WSshades
AskWoody LoungerOffice for Mac is always behind the Windows versions. One critical area is VBA for Office 2004, which is based on VB 5 the same as used for XL 97. And with 2008, there will not be any VBA at all. While I use Excel 2003 on Windows all day, I have Office 2004 on the Mac at home, I seldom use it. My primary work at home involves word processing and DTP – and for my purposes Mellel is far superior to Word 2004 for Mac. Word for Mac does not handle RTL correctly (but the Windows version has for years), whereas it is flawless with Mellel.
However, if you have the Intel Mac you can run Office 2003/2007 natively (same as Windows) on the Mac in Boot Camp. The results I have seen is that the Mac performance is at least equal to Windows and in some tests faster than Windows.
-
WSshades
AskWoody LoungerHowdy. Bill Jelen/Tracy Syrstad published a book, VBA and Macros for Microsoft Excel. One chapter is devoted to VBA and Pivot Tables. They strongly recommend using VBA for Pivot Tables, but creating the PT in code as an intermediate step only, eventually copying/pasting and formatting (all in code). I used their examples, then began applying that code to my own work. It really does work better than using Pivot tables. I encourage you to look at the book.
-
WSshades
AskWoody LoungerEDIT: Finally figured out how to format the code. This sets up a table with each color and the number on the palette.
-
WSshades
AskWoody LoungerTry this code:
Sub ColorTable() ' variables Dim i As Integer Dim j As Integer Dim k As Integer Dim sColorOrder As String Dim sLightColors As String Dim arColorOrder As Variant Dim iColorNr As Integer i = 0 ' these are the colors in same order Excel shows ' them in the pulldown: sColorOrder = "1,53,52,51,49,11,55,56,9,46,12,10,14," & _ "5,47,16,3,45,43,50,42,41,13,48,7,44,6," & _ "4,8,33,54,15,38,40,36,35,34,37,39,2,17," & _ "18,19,20,21,22,23,24,25,26,27,28,29,30,31,32" arColorOrder = Split(sColorOrder, ",", , vbTextCompare) ' Light colors that will have a dark fontcolor: sLightColors = "|6|36|19|27|35|20|28|8|34|2|" Application.ScreenUpdating = False For j = 1 To 7 ' loop rows For k = 1 To 8 ' loop columns With Cells(j, k) iColorNr = arColorOrder(i) .Interior.ColorIndex = iColorNr .Value = iColorNr ' is the color light, then make the textcolor darker If InStr(1, sLightColors, "|" & iColorNr & "|") > 0 Then .Font.ColorIndex = 56 'dark grey Else .Font.ColorIndex = 2 'white End If End With i = i + 1 Next k Next j ' Give it a nice layout: With Range(Cells(1, 1), Cells(7, 8)) .RowHeight = 20 .ColumnWidth = 4 .HorizontalAlignment = xlCenter .VerticalAlignment = xlCenter .Font.Bold = True End With Application.ScreenUpdating = True End Sub
-
WSshades
AskWoody LoungerAh, no that persistent thing is a pain!
I put this one line code and attached to a toolbar button to get rig of it. Or you could assign a keyboard shortcut.
Sub HideReviewBar()
Application.CommandBars("Reviewing").Visible = False
End Sub
-
WSshades
AskWoody LoungerNovember 17, 2006 at 1:49 pm in reply to: Macro for conditional formatting, ranking, etc. (Excel 2003) #1039265Appreciate the solution Hans.
I wonder, though, what happens with the MIN when one of the top 10 has a zero value. OP didn’t indicate one way or the other, but I know that on some projects I have worked on, there was a possibility that 0 occurred in the ranking, in which case the the MIN would have to be altered to be “MIN non-zero solution”. Just a thought.
-
WSshades
AskWoody LoungerPost deleted by shades
-
WSshades
AskWoody LoungerI agree, you can setup the connections between the db and Excel. Almost none of our people have Access. I have a four step (with four files) process, with Excel VBA to pull data through EssBase from our main frame. Then a second Xl file to accumulate ongoing data. Then a third step is to setup up display data in an XL file (we keep a running 13 week view, which we can choose the ending period for any view). And then each graph/table is linked (initially by VBA) into Powerpoint. Everything is done with formulas after the EssBase pull. With 99 markets, and 25 channels for each, plus three charts for each it is a rather substantial project. And the entire process takes only 45 minutes, 25 minutes of it involves the VBA pulls. I never touch the in-between worksheets, setup tables nor any graphs/charts.
I used this arrangement in a simpler process, and reduced report time from 10 hours, 15 minutes (and it could be faster with some code, but I have many other projects to do).
-
WSshades
AskWoody LoungerHowdy. In Tools > Options > Edit, the box next to “Fixed decimal” (on left side) should be unchecked. It might be checked and set to 2. This would be your system causing it. When I opened the spreadsheet it worked fine (no decimals).
-
WSshades
AskWoody LoungerI appreciate this hint on not activating the worksheet. It really is more efficient (and easier to understand).
Thanks
-
WSshades
AskWoody LoungerTo avoid the “subtract 1” problem, I set up the data with an extra column between row headers and data, and columns headers and data. Then it is automatically adjusted. Then I also include one extra row at bottom and column to the right in the Data name definition. That way if I add data by inserting rows or columns inside the blank rows/columns, all formulas automatically adjust.
I use this layout of data for just about every major project. It has saved considerable time, and formulas never have to be adjusted/changed.
-
WSshades
AskWoody LoungerIn regard to the second, you can use a work around.
Add a row above the data, below the headings. Then put 5 in cell D2. Also, put 5 in cell D7. Then extend the data source from row 2 to row 7.
Select your target line, change it to secondary axis, and change the scale to match the same scale as primary axis.
Then select the X-axis, choose “Format axis”, and in the scale tab, uncheck the box “Value (Y) axis crosses between categories”.
See Sheet2 for the final look.
![]() |
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
-
default apps
by
chasfinn
53 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
1 hour, 44 minutes ago -
Adding links to text in Word 2000
by
sgeneris
10 hours, 22 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
3 hours, 34 minutes ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
1 hour, 1 minute ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
4 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
21 minutes ago -
Planning ahead for migration
by
Susan Bradley
3 hours, 8 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
5 hours, 19 minutes ago -
Is Spectrum discontinuing email service?
by
Peobody
4 hours, 31 minutes ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
11 hours, 3 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
1 day, 17 hours ago -
Win 11 24H2 Home or Pro?
by
CWBillow
1 day, 3 hours ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
2 days, 2 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
2 days, 13 hours ago -
Problem using exfat drives for backup
by
Danmc
2 days, 14 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
1 day, 16 hours ago -
Change Info in the Settings window
by
CWBillow
2 days, 20 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
3 days, 3 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
2 days, 13 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
2 days, 13 hours ago -
WuMgr operational questions
by
Tex265
13 hours, 33 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
3 days, 18 hours ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
2 days, 19 hours ago -
Backing up Google Calendar
by
CWBillow
4 days, 1 hour ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
4 days, 13 hours ago -
File Naming Conventions (including Folders)
by
Magic66
3 days, 12 hours ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
4 days, 21 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
4 days, 7 hours ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
3 days, 14 hours ago
Recent blog posts
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
- Woody Leonhard (1951–2025)
- What I learned from Woody Leonhard
- Windows Settings today
- Mail Merge magic in Microsoft Word
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.