-
WSBobUmlas
AskWoody LoungerSelect the column (say it’s D)
Use Format/Conditional Format
Change “Cell Value Is” to “Formula Is”
Assuming D1 is active, enter
=$C1=whatever your test is, like
=NOT(ISBLANK($C1))
Then click FOrmat button & do whatever you want. -
WSBobUmlas
AskWoody LoungerNo — G3 has the requirements built in to its formula. When G3 is true, its contents must be true which are your restraints.
-
WSBobUmlas
AskWoody LoungerSheets(“Sheet1”).Range(“G3”).Value = DialogSheets(“Dialog1”).EditBoxes(“Edit Box 4”).Text
-
WSBobUmlas
AskWoody LoungerLet’s assume cell d7:d8 must have 1,2,3 and d9 must have 1,2,4. You can place this in a cell, say G3, which contains a formula:
=AND(OR(D7={1,2,3}),OR(D8={1,2,3}),OR(D9={1,2,4}))
then use solver to make sure G3 is TRUE.
HTH
Bob Umlas
Excel MVP -
WSBobUmlas
AskWoody LoungerBecause of what I passed to the MID function. If you look at help, the MID function’s second parameter is usually a number, NOT AN ARRAY OF NUMBERS. Like =MID(A1,5,3). If you pass an array to the function, like =MID(A1,{1,2,3},1) then Excel needs to know this and it’s via the array-entry that you tell it so.
-
WSBobUmlas
AskWoody LoungerComplain? Doesn’t sound like a complaint!
Top understand the formula, let’s assume A1 contains 10875.
=SUM(1*MID(A1,ROW(INDIRECT(“1:”&LEN(A1))),1))
LEN(A1) is 5
“1:LEN(A1) is now “1:5”
INDIRECT(“1:5”) is the range 1:5
ROW(1:5) is then {1;2;3;4;5}
MID(A1,{1;2;3;4;5},1) is
{“1″;”0″;”8″;”7″;”5”}
1 * that is
{1;0;8;7;5}
SUM({1;0;8;7;5}) is 21.
Does that help? -
WSBobUmlas
AskWoody LoungerWassim, Wassim — Thought you’d be an array-formula champ by now (folks — I know Wassim personally)
Try array-entering:
=SUM(1*MID(A1,ROW(INDIRECT(“1:”&LEN(A1))),1)) -
WSBobUmlas
AskWoody LoungerIf you didn’t turn it off, it’s on each time you start Excel. However, you can use alt/F11, then ctrl/G (brings up the “immediate” pane window), then simply type and enter
Application.EnableEvents = True
then Alt/Q to return to Excel. -
WSBobUmlas
AskWoody LoungerMaybe you have events disabled?
Put this piece of code somewhere where you know it’ll run:
Application.EnableEvents = True -
WSBobUmlas
AskWoody LoungerYes, but I didn’t think the user wanted it to be so dynamic — was just providing another way.
-
WSBobUmlas
AskWoody LoungerOr in the Activate event:
Private Sub Worksheet_Activate()
On Error Resume Next
me.name=range(“A1”).Value
End Sub -
WSBobUmlas
AskWoody Loungerif the date is in B2, then simply use =B2+90.
-
WSBobUmlas
AskWoody LoungerSure! Assume rg is defined as A1:A5 and contains Apple, Pear,Banana,Orange,Grape and B1″B5 contains 10,20,30,40,50.
An expression like rg”Apple” would compare each item of rg against the string “Apple” and return something like {FALSE;TRUE;TRUE;TRUE;TRUE} where TRUE means that item of rg is NOT = “Apple”
TRUE * TRUE is 1, all other combinations produce 0.
So, multiplying these rg”whatever” is something like
{FALSE;TRUE;TRUE;TRUE;TRUE} * {TRUE;FALSE;TRUE;TRUE;TRUE} which is {0;0;1;1;1}.
Offset(Rg,,1) is the column of #s next to rg, or the 10,20,30,40,50. Multiplying it all out is like:
{10;20;30;40;50}*(0;1;1;1;1}*{1;1;0;1;1}*{1;1;1;0;1} which is {0;20;0;0;50}.
This is then passed into the SUM, for a result of 70.
Capisce? -
WSBobUmlas
AskWoody LoungerOr ctrl/shift/enter:
=SUM(OFFSET(rg,,1)*(rg”Apple”)*(rg”Banana”)*(rg”Orange”)) -
WSBobUmlas
AskWoody LoungerClearly a bug — change orientation to 88 degrees & it’t not bad. 89 degrees & it’s teeny! 90 degrees & it’s gone! Either use 88 or re-orient it!
![]() |
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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
6 hours, 8 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
1 hour, 52 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
4 hours, 43 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
4 hours, 51 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
5 hours, 34 minutes ago -
Rufus is available from the MSFT Store
by
PL1
3 hours, 3 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 5 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
12 hours, 19 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
8 hours, 30 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 1 hour ago -
Office gets current release
by
Susan Bradley
1 day, 4 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 18 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 2 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 19 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 5 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 7 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 7 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 8 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 8 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 20 hours ago -
Enabling Secureboot
by
ITguy
3 days, 3 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 16 hours ago -
No more rounded corners??
by
CWBillow
3 days, 12 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 2 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 5 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 7 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 days, 2 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 15 hours ago -
May preview updates
by
Susan Bradley
4 days, 2 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 18 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.