Hi
=IF(ISERROR(VALUE(B7)),B7,1 can anyone please tell me why this returns 1 whatever number is in B7, B7 actually contains =RIGHT(A7,1) but resulst in 6
Thanks Braddy
![]() |
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 |
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Why Value returns 1 (Excel 2003)
If B7 contains a value that looks like a number, VALUE(B7) will return that number.
Hence, ISERROR(VALUE(B7)) will be FALSE, for VALUE(B7) does not result in an error.
And so, the formula return the FALSE part of the IF function, i.e. 1.
If B7 contains an alphabetic character, VALUE(B7) will result in an error.
Hence, ISERROR(VALUE(B7)) will be TRUE.
The formula will return the TRUE part of the IF function, i.e. the character in B7.
Perhaps you need to swap the TRUE and FALSE parts?
=IF(ISERROR(VALUE(B7)),1,B7)
(I don’t know what you’re trying to accomplish)
Hi Hans
This is an inherited Workbook and the owner is no longer with us, and I have been asked to make additions to the Workbook, but first I have to try and figure out what is happening.
I have never used Value before, I looked in help, and it said it returns a number from a text string, and because I did not have text string value I wasn’t sure what was happening.
I have not yet discovered why he needed this result!
Many Thanks Braddy
The result of functions such as LEFT, MID and RIGHT is always a text string. It may look like a number, but it is text. In the screenshot below, A2 contains the number 678, and B2 contains the formula =LEFT(A2,1). Note that the value in B2 is left-aligned; this indicates that Excel “sees” it as a text value, even though it looks like a number. C2 contains the formula =SUM(A2:B2), and since SUM ignores text values, the result is 678, not 684.
(If you use =A2+B2, you force Excel to convert the value of B2 to numeric, so the result will be 684).
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.
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.
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.