-
Don Wells
AskWoody LoungerJuly 24, 2014 at 9:04 am in reply to: Is there a version of “MATCH” that works with multiple columns? #1460394Elegant bit of code Steve.
-
Don Wells
AskWoody LoungerHello RG
I saw an argument some time back professing that if not dealing with whole numbers, there was no advantage to using single over double when declaring a number. Do you have any thoughts on this?
-
Don Wells
AskWoody LoungerHi Wassim
I suspect that you do not wish numbers repeated within the range of interest. I suspect that the solutions shown to date will allow this situation if the user enters anything but the next higher number. I offer the following concept.
-
[*]Assume that your input range is $A$10:$L$10
[*]In cell A10 enter the following validation formula:[*]=1+MAX($B10:$L10)
[*]In cell L10 enter the following validation formula
-
[*]=1+MAX($A10:$K10)
[*]In cell B10 enter the following validation formula
-
[*]=1+MAX(MAX($A10:A10),MAX(C10:$L$10))
[*]Copy cell B10 and paste it into cells C10:K10
[/LIST]
With this approach, once a number is entered, it can only be deleted or changed to the next acceptable number. Having taken either of these actions, the number that was changed will remain unused in the series unless an Undo (Ctrl + Z), action is invoked as the next step. Having deleted the number from a cell, it can then be populated with the next acceptable number. -
Don Wells
AskWoody LoungerBe cautious; the first sixty days in the Excel calendar are in error. Lotus123 mistakenly calculated that the year 1900 was a leap year. When Excel first launched, they advertised 100% compatibility with Lotus123 and consequently incorporated February 29 1900 (a day that didn’t exist), into their calendar. I assume that the error remains as a result of backward compatibility requirements.
XDate does not recognize this fictitious date (Feb. 29 1900).
-
Don Wells
AskWoody LoungerThank you Jefferson and Andrew
In another forum, Hans V offered me the following advice which nicely did the trick.
IrfanView will let you choose a color to become transparent when saving a .png,
-
Don Wells
AskWoody LoungerI’ve opened several workbooks and all have Page Setup, Print Preview and Print greyed out in the file menu. ANy idea how I can fix this?
ThanksWhat is the situation when attempting to print the blank worksheet immediately after launching Excel?
Do you have a problem when printing a Word document? -
Don Wells
AskWoody LoungerWhich version/s of Excel will it work with?
BenIt was composed in 2003, I believe that Hans has run it in 2007. It should work in all versions.
-
Don Wells
AskWoody LoungerThank you.
I will certainly give this a workout,
-
Don Wells
AskWoody LoungerThank you Jefferson and Retiree
-
Don Wells
AskWoody LoungerFWIW
I have been advised to NOT attempt modifying existing menu bar items. They aren’t mine to modify.
-
Don Wells
AskWoody LoungerSee attached sample for what I am trying to accomplish.
Hi Corden
Here is a second example using VBA,
HTH
-
Don Wells
AskWoody LoungerSee attached sample for what I am trying to accomplish.
Hello Corden
Have you considered using a Pivot Table/Chart as shown in the attached sample?
Regards
Don -
Don Wells
AskWoody LoungerNot particularly. I prefer the former as it’s easy to watch what is going into the variable and it cuts down on the number of times you read properties of the range, but in performance terms I doubt there’s any real difference.
I was surprised to find that although your preferred approach appears to be taking an extra step; it consistently runs 2% faster than the shorter version which I identified.
Go figure. -
Don Wells
AskWoody LoungerNeed more info:
How many years?
Which years?
Sample of date ranges needed?I think that Corden’s request is satisfied with the attached.
-
Don Wells
AskWoody LoungerCode:rngTo(1).Resize(UBound(varFormulas, 1), UBound(varFormulas, 2)).Formula = varFormulas
Thank you for that Rory.
Is there any advantage to either of the following snippets over the other?
Code:varFormulas = rngFrom.Formula rngTo(1).Resize(UBound(varFormulas, 1), UBound(varFormulas, 2)).Formula = varFormulas
Code:rngTo(1).Resize(rngFrom.Rows.Count, rngFrom.Columns.Count).Formula = rngFrom.Formula
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
3 hours, 7 minutes ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
3 hours, 56 minutes ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
18 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
6 hours, 32 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
15 hours, 10 minutes ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
19 hours, 8 minutes ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
19 hours, 9 minutes ago -
Unable to eject external hard drives
by
Robertos42
1 hour, 3 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
3 hours, 1 minute ago -
Tech I don’t miss, and some I do
by
Will Fastie
13 minutes ago -
Synology limits hard drives
by
Susan Bradley
1 day, 23 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
1 day, 1 hour ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
2 days, 5 hours ago -
Upgrade Sequence
by
doneager
1 day, 22 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
4 hours, 21 minutes ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
21 hours, 35 minutes ago -
The incredible shrinking desktop icons
by
Thumper
3 days, 2 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
3 days, 4 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
3 hours, 6 minutes ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 13 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days, 13 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
2 days, 17 hours ago -
Speeding up 11’s search
by
Susan Bradley
1 day, 1 hour ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
1 day, 13 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
4 days, 3 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 10 hours ago -
24H2 fixed??
by
CWBillow
3 days, 3 hours ago -
Uninstalr Updates
by
jv16
4 days, 16 hours ago -
Apple zero days for April
by
Susan Bradley
12 hours, 40 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
3 days, 13 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.