-
WSAladin Akyurek
AskWoody LoungerBut it does…
-
WSAladin Akyurek
AskWoody Lounger=IF(C7*D7>0,D7/C7,””)
The >0 bit is there, because you want to exclude negative numbers.
Aladin
-
WSAladin Akyurek
AskWoody LoungerHow about
=IF(COUNTBLANK(A1:A2),”N/A”,IF(A1,(A2-A1)/A1,”N/A”))
where you can replace “N/A” by just #N/A without quotes if so desired?
Aladin
-
WSAladin Akyurek
AskWoody LoungerIn order to get the last occurrence of a given month, use one of:
=INDEX(A2:A6,MATCH(E1,TEXT(A2:A6,”mmmm”))) where E1 is e.g., “June”,
=INDEX(A2:A6,MATCH(E1,MONTH(A2:A6))) where E1 is e.g., 6.
Both are again array-entered (using control+shift+enter).
I must leave the VBA part of your question to someone else.
Aladin
-
WSAladin Akyurek
AskWoody LoungerLet A1:C5 in Sheet1 house the sample you provided.
Let A1:A7 in Sheet2 house the input data for which the associated Ref#’s must be retrieved from the data in Sheet1.
In B2 in Sheet2 enter and copy down:
=SUMPRODUCT((A2>=Sheet1!$B$2:$B$5)*(A2<=Sheet1!$C$2:$C$5)*(Sheet1!$A$2:$A$5))
Aladin
-
WSAladin Akyurek
AskWoody LoungerIt’s caused by “Extend list formats and formulas” on the Edit tab if this feature is checked.
Aladin
-
WSAladin Akyurek
AskWoody LoungerTry:
=SUM(OFFSET($A$1,0,0,3,1))-SUM(OFFSET($A$4,0,0,3,1))
Aladin
-
WSAladin Akyurek
AskWoody LoungerArray-enter, using control+shift+enter:
=SUM(IF(LEN(A2:A8),1/COUNTIF(A2:A8,A2:A8)))
where A2:A8 houses the dates to count.
Aladin
-
WSAladin Akyurek
AskWoody Lounger=INDEX(A2:A6,MATCH(E1,TEXT(A2:A6,”mmmm”),0))
where E1 houses a month name like “June” as criterion,
or
=INDEX(A2:A6,MATCH(E1,MONTH(A2:A6),0))
where E1 houses a month number like 6 as criterion.
These formulas must be array-entered (using control+shift+enter).
Aladin
-
WSAladin Akyurek
AskWoody LoungerI prefer the MATCH formula myself.
However, the COUNTIF formula should work too:
=COUNTIF(A1:D1,”Overdue”)>0
I believe you omitted the >0 bit, that’s why you get a count instead of a logical value.
Regards,
Aladin
-
WSAladin Akyurek
AskWoody LoungerCounting and summing depending on a single condition should be done with COUNTIF and SUMIF, respectively. Both accept constants like 7, “B”, a cell housing a constant, or a computation that evaluates to a scalar value. Examples:
=COUNTIF(A1:A10,MAX(A1:A10)), where the MAX bit evaluates to a scalar;
=SUMIF(A1:A10,”>=”&AVERAGE(A1:A10),B1:B10), where the AVERAGE bit also evaluates to a scalar.
For counting and summing depending on multiple conditions, you need to devise either (a) SUMPRODUCT or array-formulas or (
formulas with database functions.
For (a), see also:
http://www.mrexcel.com/wwwboard/messages/8961.html%5B/url%5D
Aladin
-
WSAladin Akyurek
AskWoody Lounger=ISNUMBER(MATCH(“Overdue”,A1:D1,0))
or
=COUNTIF(A1:D1,”Overdue”)>0
Aladin
-
WSAladin Akyurek
AskWoody LoungerJune 19, 2002 at 6:43 am in reply to: Count unique records based on criteria of 2nd colu (Excel(2000)) #595664Bruce,
If you’re willing to download Longre’s Morefunc add-in and add it to your system,
the following array-formula will give you the desired counts:=SUM(IF(ISNUMBER(SEARCH(D2,UNIQUEVALUES($A$2:$A$7&$B$2:$B$7))),1))
where A2:A7 holds the house numbers, B2:B7 the pet types, and D2 a condition/criterion like “dog”.
In case it’s needed: To array-enter a formula, you need to hit control+shift+enter at the same time, not just enter.
Morefunc is downloadable from:
http://longre.free.fr/english/index.html
Aladin
-
WSAladin Akyurek
AskWoody LoungerIn F2 enter:
=A2*B2-SUM(EVAL(“{“&SUBSTITUTE(C2,CHAR(10),”,”)&”}”))
In order to use EVAL you need to download the Longre’s Morefunc add-in from:
http://longre.free.fr/english/index.html
Aladin
-
WSAladin Akyurek
AskWoody LoungerRicky,
Given your new specs,
in C3 enter:
=B10-MOD(B10-1,7)
The rest stays the same as in my previous post.
Aladin
![]() |
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
-
Nvidia just fixed an AMD Linux bug
by
Alex5723
13 hours, 23 minutes ago -
50 years and counting
by
Susan Bradley
15 hours, 43 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
59 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
1 day ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
1 day ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
1 day ago -
OneNote and MS Word 365
by
CWBillow
1 day, 2 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
1 day, 2 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
1 day, 2 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
1 day, 3 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
1 day, 14 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
1 day, 14 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
1 day, 23 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
1 day, 11 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
12 hours, 18 minutes ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
2 days, 8 hours ago -
Apple backports fixes
by
Susan Bradley
1 day, 14 hours ago -
Win 11 24H2 will not install
by
Michael1950
12 hours, 32 minutes ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
8 hours, 14 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
21 hours, 1 minute ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
2 days, 10 hours ago -
Get back ” Open With” in context menus
by
CWBillow
2 days, 23 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
1 day, 15 hours ago -
simple general stupid question
by
WSaltamirano
2 days, 20 hours ago -
April 2025 Office non-Security updates
by
PKCano
3 days, 14 hours ago -
Microsoft wants to hear from you
by
Will Fastie
1 day, 5 hours ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
3 days, 17 hours ago -
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
3 days, 23 hours ago -
Test post
by
Susan Bradley
4 days, 1 hour ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
4 days, 3 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.