-
WSbosco_yip
AskWoody Lounger[TABLE]
[TR]
[TD]Or try this shorter formula :[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]=MID(A1&” “&A1,FIND(“,”,A1)+2,LEN(A1)-1)[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Regards[/TD]
[/TR]
[/TABLE] -
WSbosco_yip
AskWoody Lounger…….I am trying to test or apply a logical test to a column of numbers, such that if any cell value in the column is outside the numerical value range of “2.5 to 3.5” a 1 is returned, if any cell value is within this range then a 0 is returned……….
Marty1] In excel, OR() is equal to ” + ” ( plus sign of arithmetic operator )
2] Check if a number is greater than or less than another number
=(E1<2.5) will return TRUE or FALSE
3] Thus, a logical testing for numeric value outside the range of "2.5 to 3.5"
The formula : ( without IF() and OR() )
=(E13.5)
Regards
Bosco -
WSbosco_yip
AskWoody LoungerWhile your solution works with numbers entered in A1:A2; if text is entered in either cell an error is returned. The solution offered by Hans “=IF(ISERROR(A1/A2),0,A1/A2)” does not succumb to this trap.
But, the OP asked for : ” How to return zero when computation in 100 / 0 ? ( or A1/A2 )”
I think the cell A1:A2 ( 100 / 0 ) were numbers
The ISERROR() definite not required
Regards
Bosco -
WSbosco_yip
AskWoody LoungerPlease refered to this Thread #12, regarding blank cell and formula blank cell
Regards
Bosco -
WSbosco_yip
AskWoody LoungerIs there a function with in Excel that returns zero for a undefined computation such as in 100 / 0?
JohnOr try this,
can be used in all Excel versions and without ISERROR testing function :
=IF(A2,A1/A2,0)
Regards
Bosco -
WSbosco_yip
AskWoody LoungerBut the “formula blank cell” A4 is not included in the count!
Hi Hans,
Oh!… my mistake!…..the mistake was corrected as per your advised.
Thank you for your good catch
Regards
Bosco -
WSbosco_yip
AskWoody Lounger……While using the “COUNTA and COUNTBLANK” functions to count the number of cells within the same column that contain, a 1, a 0 or are blank, the COUNTBLANK function returns a correct value, those cells that are blank. Yet the COUNTA function merely counts the total number of cells within the specified range, whether a 1, 0 or blank.
MartyHerein the examples in explanation of using COUNT, COUNTA, COUNTBLANK and COUNTIF
Testing datas at Column A1:A5
……Col A…
..1….M……
..2….8……
..3…. …… ( A3 is a blank cell )
..4…. …… ( A4, is a formula blank cell, with enter : =”” )
..5….9……1] COUNTBLANK…..Count no of blank cells (blank and formula blank cells)
=COUNTBLANK(A1:A5)
=2 (A3+A4)
2] COUNTA…..Count no of non-blank cells, include formula blank cell
=COUNTA(A1:A5)
=4 (A1+A2+A4+A5)
3] COUNT…..Count no of numeric cells, exclude formula blank cell
=COUNT(A1:A5)
=2 (A2+A5)
4] =COUNTIF…..Count no of text cells, include formula blank cell
=COUNTIF(A1:A5,”*”)
=2 (A1+A4)
5] =COUNTIF…..Count no of text cells, exclude formula blank cell
=COUNTIF(A1:A5,”?*”)
=1 (A1)
Remark : COUNTIF is a conditional count function, please refer to the Help File for further information
Hope can help
Regards
Bosco -
WSbosco_yip
AskWoody LoungerYou can also use =”” in the place of ISBLANK
=IF(E2=””,””,IF(OR(E23.5)=TRUE,1,0))Or, using only one IF function is enough
=IF(E2=””,””,(E23.5))
Regards
Bosco -
WSbosco_yip
AskWoody Lounger=IF(A2=”ABC”,”ABC “,”Others “)&IF(OR(G2={“A999″,”B999″,”C999″,”999A”,”999B”,”999C”}),”AUTO “,IF(OR(G2={“1 India”,”2 India”,”India 1″,”India 2″,”USA”}),”MANUAL “,””))&IF(M2=”No”,”CORRECT”,IF(M2=”Yes”,”INCORRECT”))
-
WSbosco_yip
AskWoody LoungerUse ” Text to Columns ” way :
Select all column C “dates” >> Format Cell >> Number >> Date >> and choose : 2001-03-14 >> OK
>> Data >> Text to Columns >> Delimited >> Next >> Next >> choose : Date >> select : YMD form the dropdown list >> Finish
Regards
Bosco -
WSbosco_yip
AskWoody LoungerOr, try…………….
=LOOKUP(H2,A$2:D$61)
Regards
Bosco -
WSbosco_yip
AskWoody LoungerOr, try to use this shorter formula :
=REPLACE(CELL(“filename”,A1),1,FIND(“]”,CELL(“filename”,A1)),)
Regards
Bosco -
WSbosco_yip
AskWoody LoungerIn follow Hans’ table :
1] The Min value of each year ( Helper column ), H3 enter the array formula and copied down :
{=MIN(IF(–TEXT($C$3:$C$47,”yyyy”)=G3,$D$3:$D$47))}
2] The cell address ( Row number ) of each year’s minimum value, I3 enter the array formula and copied down :
{=MAX((–TEXT($C$3:$C$47,”yyyy”)=G3)*($D$3:$D$47=H3)*ROW($3:$47))}
3] Date of each year’s minimum value, J3 enter the formula and copied down :
=INDEX(C:C,I3)
Regards
Bosco -
WSbosco_yip
AskWoody LoungerOr this non-array formula :
=SUMPRODUCT((Sheet1!B1:B10={“red”,”blue”,”green”})*Sheet1!A1:A10)
Regards
Bosco -
WSbosco_yip
AskWoody LoungerTry this formula in B12:
=IF(OR($C2=”Saturday”,$C2=”Sunday”),B2,IF(OR($E2TIME(17,0,0)),B2,””))
Or, shorten to :
=IF((LEFT($C2)=”S”)+(($E2TIME(17,,))),B2,””)
Regards
Bosco
![]() |
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
-
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
23 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
4 hours, 56 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
13 hours, 28 minutes ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
14 hours, 17 minutes ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
4 hours, 16 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
9 hours, 41 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 1 hour ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 5 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 5 hours ago -
Unable to eject external hard drives
by
Robertos42
8 hours, 56 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
5 hours, 16 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
10 hours, 34 minutes ago -
Synology limits hard drives
by
Susan Bradley
2 days, 9 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
1 day, 12 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
2 days, 15 hours ago -
Upgrade Sequence
by
doneager
2 days, 9 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
14 hours, 42 minutes ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 7 hours ago -
The incredible shrinking desktop icons
by
Thumper
3 days, 12 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
3 days, 14 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
13 hours, 27 minutes ago -
Shellbag Analyser & Cleaner Update
by
Microfix
6 hours, 57 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days, 23 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
3 days, 4 hours ago -
Speeding up 11’s search
by
Susan Bradley
1 day, 11 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
1 day, 23 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
4 days, 13 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 21 hours ago -
24H2 fixed??
by
CWBillow
3 days, 13 hours ago -
Uninstalr Updates
by
jv16
5 days, 2 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.