-
WSAladin Akyurek
AskWoody LoungerAgree, in particular when a multiconditional summing is required. But, if the formula needs to be copied to a multitude of cells, the speed advantage decreases steadily for one needs to use the table method which boils down to an array formula entered in multiple cells. See my contrib in:
http://www.mrexcel.com/board2/viewtopic.php?t=60895%5B/url%5D
-
WSAladin Akyurek
AskWoody LoungerIt’s faster.
-
WSAladin Akyurek
AskWoody Lounger=LOOKUP(9.99999999999999E+307,D:D)
-
WSAladin Akyurek
AskWoody LoungerHans,
There is no need for ISNA. If invoking a LOOKUP formula is justified, that is, Tran_Date in this paricular case in ascending order, there will be just one situation in which #N/A will obtain. That is when IDate < INDEX(Tran_Date,1). Since LOOKUP is very fast, it's a pity to slow down its speed with a scheme that requires "computing twice".
If LOOKUP is indeed justified, the following options would be better:
1)
=IF(IDate<INDEX(Tran_Date,1),"",LOOKUP(IDate,Tran_Date,Jumbo_ND))
2} Add the following at the beginning of Tran_Date:
-9.99999999999999E+307
and at the beginning of Jumbo_ND
=""
and just invoke:
=LOOKUP(IDate,Tran_Date,Jumbo_ND)
unmodified.
The last option is the best.
-
WSAladin Akyurek
AskWoody LoungerEntire rows are OK though. Here some thoughts regarding the issue:
-
WSAladin Akyurek
AskWoody LoungerLOOKUP(9.99999999999999E+307,Reference)
returns the last numerical value from Reference.
Reference can be either a range or an array (a vector). F2:F10 is a range, while {#N/A,#N/A,5,2} is an array.
CHOOSE(Idx,Value1,…,ValueN)
where N is between 1 and 29 inclusive, allows to pick out a value from the list of values Value1,…ValueN whose position matches the Idx value. For example:
CHOOSE(2,MAX(A1:B1),MAX(E1:F1)
picks out the value that MAX(E1:F1) returns.
CHOOSE({1,2,3},VLOOKUP(…),VLOOKUP(…),VLOOKUP(…))
has an Idx that is a constant array of index numbers: {1,2,3}. This causes to pick out all of the values that 3 VLOOKUP will return. The result will look like, e.g.
{205.80,#N/A,#N/A}
or
{217.65,185.43,#N/A}
or
{#N/A,#N/A,#N/A}
LOOKUP with the big number as lookup value will return 205.80, 185.43, and #N/A, respectively.
-
WSAladin Akyurek
AskWoody Lounger(Edited by HansV to make URL clickable – see Help 19)
If the retrieval result is a number…
=LOOKUP(9.99999999999999E+307,CHOOSE({1,2,3},VLOOKUP(A6,FoodPrice,4,0),VLOOKUP(A6,Colist,4,0),VLOOKUP(A6,Agriculture,4,0)))
The idiom is due to fairwinds: http://tinyurl.com/6db2f%5B/url%5D
-
WSAladin Akyurek
AskWoody LoungerApparently, either AC7 or Y7 can house #N/A for the formula to evaluate to #N/A.
If you don’t want to clean up AC7 and/or Y7 for such an error, as an alternative, you can set up your formula in a positive mood…
=IF(ISNUMBER(AC7/Y7),AC7/Y7,””)
-
WSAladin Akyurek
AskWoody Lounger=SUMPRODUCT(–($W7:$W123=”y”),–($P7:$P123=2),$Y7:$Y123)
would ignore any text values in Y7:Y123 and is slightly faster.
-
WSAladin Akyurek
AskWoody LoungerLooks like you want a multi-conditional count…
In H3 enter, copy across to J3 then down:
=SUMPRODUCT(–($B$3:$B$9=$G3),–($E$3:$E$9=H$2))
where B3:B9 house Managers and E3:E9 aid Types, while G3 houses a criterion manager and H2 a type criterion.
Another option is to bulid a pivot table from your data.
-
WSAladin Akyurek
AskWoody LoungerWhat is missing in the attachment is the expected results. Care to provide the desired/expected figures?
-
WSAladin Akyurek
AskWoody LoungerQ1. Answer: No. However, the following setup would take care of that.
Assuming that P is numeric and the data starts at row 7…
A1:
=MATCH(9.99999999999999E+307,P7:P65536)
The formula would become, using Sumproduct instead of Sum:
=SUMPRODUCT(–($W$7:INDEX($W$7:$W$65536,$A$1)=A2),–($P$7:INDEX($P$7:$P$65536,$A$1)=B2),–($Q$7:INDEX($Q$7:$Q$65536,$A$1)=C2))
where A2 houses a value like “y” (without double quotes, B2 2, and C2 “L”.
This formula needs just enter instead of control+shift+enter.
Q2. The Sum formula operates on arrays as the SumProduct formula. The star [ i.e., * ] might be thought of as a multple-value AND. It effects vector (matrix) multiplication. The evaluation of a conditional yield a truth-valued vector, that is, something like {TRUE,FALSE,FALSE,TRUE,…}. This set is first coerced into a numerical vector, that is, something like {1,0,0,1,…}. In Excel, 1 and 0 are numerical equivalents of TRUE and FALSE, respectively. After coercion, vectors are multilied and summed. The same thing happens when we use SumProduct. Double negation takes care of coercion. The comma in SumProduct stands for multiplication.
Q3. Answer: 30. The conditionals indeed must be put between parens.
-
WSAladin Akyurek
AskWoody LoungerThis is recurring issue. Check out, for example:
-
WSAladin Akyurek
AskWoody LoungerYou could do a multi-key lookup by extending your lookup table (addnum) with an additional column by concatenating its first two columns…
Let B2:E20 on Sheet2 house the lookup table with Item Code in B and Customer in C.
In A2 enter & copy down:
=B2&”,”&C2
Now select A2:E20 and name the selection “addnum”.
This setup allows you to invoke an ordinary VLOOKUP formula…
=VLOOKUP(A2&”,”&B2,addnum,5,0)
where A2 houses an Item Code interest and B2 a customer of interest on, say, Sheet1.
See attachment.
-
WSAladin Akyurek
AskWoody LoungerI admit I generate it by counting 9’s while typing.
But one can copy it from the Help file:
Excel specifications and limits > Calculation specifications
![]() |
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
-
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
33 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
2 hours, 20 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
17 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
6 hours, 53 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
13 hours, 21 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
7 hours, 22 minutes ago -
23 and you
by
Max Stul Oppenheimer
13 hours, 23 minutes ago -
April’s deluge of patches
by
Susan Bradley
40 minutes ago -
Windows 11 Windows Updater question
by
Tex265
5 hours, 36 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 4 hours ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 9 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
15 hours, 34 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
53 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 14 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 15 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 23 hours ago -
No Newsletters since 27 January
by
rog7
4 hours, 20 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
22 hours, 57 minutes ago -
Google One Storage Questions
by
LHiggins
6 hours, 56 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
14 hours, 12 minutes ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 4 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 14 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
1 hour, 10 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 22 hours ago -
Firefox 137
by
Charlie
1 hour, 7 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 2 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 3 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 3 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 23 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.