i have a worksheet in which therw are 5 colums. in colum E:E i have what is an error mesage “#VALUE!” in sheet 2 named #Value i have placed a copy of the rows with errors and substituted the correct values.
sheet 1 is automatically updated via a link but the errors have a low priority with our IT dept and will take months to review
if i use the formula
=sumif(‘#value'”A:A,sheet1!A14,’value!E:E)ican replace the errors withe the correct figures (A14 was the row in this case that the error wasb apparant)
if i use this formula on the whole colum correct figure are changed to 0 and the errors corrected.
iam trying to use =if(iserror(E4)……. with “=sumif(‘#value'”A:A,sheet1!A14,’value!E:E)” complete and utter failure being the result
can any one help me with getting the formula correct
![]() |
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 |
-
funnction help required ‘IF’ (officexp 2002)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » funnction help required ‘IF’ (officexp 2002)
- This topic has 24 replies, 4 voices, and was last updated 20 years, 8 months ago.
AuthorTopicWSalexanderd
AskWoody LoungerJune 24, 2004 at 5:44 pm #406613Viewing 1 reply threadAuthorReplies-
WSyoyophil
AskWoody LoungerJune 24, 2004 at 8:01 pm #844518 -
WSalexanderd
AskWoody Lounger -
WSyoyophil
AskWoody LoungerJune 24, 2004 at 8:51 pm #844546Alex
Here is a stab at it. Sheet 1 has a formula in the E column which tries to run a simple calculation. Because some of the cell entries are text the result of the formula is #VALUE. I created this to mimic what you say is happening on your sheet. On the sheet called #Value the results from Sheet 1, column E are pulled into column A. In column B is a formula that looks at the results in A and if it does not find an error it keeps the result you have. Where it finds an error it places “sumif formula here”. Because I don’t understand your sumif formula, but you say it works, insert it into the formula in place of the “sumif formula here” statement adjusting for sheet names and ranges.
Hope this helps.
yoyoPHIL
-
WSalexanderd
AskWoody Lounger -
WSalexanderd
AskWoody Lounger -
WSalexanderd
AskWoody LoungerJune 27, 2004 at 8:02 am #845183sorry for the delay in replying, unfortunately i was unable to get your suggestion to work most likely because you had nothing to go off, other than my wording.
here is the solution i eventually worked out (i’ve included a copy of the file for you
1) copy route1 to route 2
2) copy and paste the following in I4
=sumif(‘#VALUE’!A:A,sheet1!A4,’#VALUE’E:E)
3) H4 copy and paste
=if(true=iserror(G4),I4,G4)
4) copy H:H & paste special paste as values in route1
it works though is still messy
thank you for your in put -
H. Legare Coleman
AskWoody PlusJune 27, 2004 at 5:17 pm #845212Two comments about your workbook.
1- #Value is the error value that is returned when the wrong type of argument or operand is used in a formla. It is not a good idea to use this as the name of a worksheet. Not only might it confuse a user, but it can also possibly cause problems in a formula.
2- On your #Value worksheet, in the range A61:A63, the AccNo have a space after the number. That means that these three values are stored as text and all of the other values in this column are stored as numeric values. This can cause problems with formula like the SUMIF that you are using.
-
WSalexanderd
AskWoody LoungerJune 28, 2004 at 8:37 pm #845586i thought by using “#VALUE” i would remember what i had done and why i needed the 2nd sheet also for othere people to follow what i have done, your comments are welcome and i will change the sheet name to something more appropiate (don’t laugh) “ErrorValues”
on your second point. this is a down load from a proteus system and is a pain as i have to download as a CSV , change any numerical/text type numbers by
multiplying the noumber x 1— any suggestions for a better result would be appreciated -
WSsdckapr
AskWoody LoungerJune 28, 2004 at 11:57 pm #845665If you pull in the same format all the time use a macro to import it. Use the OpenText method and set the FieldInfo parameter to ensure that all the columns are the format you desire (text, various date, skip, or general to have each defined)
An easy way to get the code is it change the extension to txt and then start recording a macro
Then open the file, change to delimited, comma
and go thru the wizard.
In each column change the type as desired
stop macro and look at the code.It does not work if the extension is csv, because excel assume it is just a comma delimited and doesn’t call the wizard.
Steve
-
WSsdckapr
AskWoody LoungerJune 28, 2004 at 11:57 pm #845666If you pull in the same format all the time use a macro to import it. Use the OpenText method and set the FieldInfo parameter to ensure that all the columns are the format you desire (text, various date, skip, or general to have each defined)
An easy way to get the code is it change the extension to txt and then start recording a macro
Then open the file, change to delimited, comma
and go thru the wizard.
In each column change the type as desired
stop macro and look at the code.It does not work if the extension is csv, because excel assume it is just a comma delimited and doesn’t call the wizard.
Steve
-
H. Legare Coleman
AskWoody PlusJune 29, 2004 at 1:38 am #845678Running this macro on the sheet after the import might fix most of the problems:
Public Sub FixData() Dim oCell As Range Application.ScreenUpdating = False For Each oCell In ActiveSheet.UsedRange If Not oCell.HasFormula And Not IsError(oCell) Then If IsNumeric(Trim(oCell.Value)) Then If Len(Trim(oCell.Value)) > 3 Then oCell.NumberFormat = "0000000" Else oCell.NumberFormat = "General" End If oCell.Value = Trim(oCell.Value) End If End If Next oCell Application.ScreenUpdating = True End Sub
-
WSalexanderd
AskWoody LoungerJuly 6, 2004 at 6:58 pm #848133yoyophils function
=IF(ISERROR(E4)=TRUE,SUMIF(‘#VALUE’!A:A,Sheet1!A4,’#VALUE’!E:E),E4) the function works like a dream, if you remove the TRUE from the function you only get TRUE or FALSE not the actual value
to legare coleman, i would like to say thank you for your suggestion, on CSV values i hope to tryit out shortly and see what difference it makes to the working i have used to get round the problem in the past.
than you to yoyophil and to legare for all the help they have give in resolving my queery -
WSalexanderd
AskWoody LoungerJuly 6, 2004 at 6:58 pm #848134yoyophils function
=IF(ISERROR(E4)=TRUE,SUMIF(‘#VALUE’!A:A,Sheet1!A4,’#VALUE’!E:E),E4) the function works like a dream, if you remove the TRUE from the function you only get TRUE or FALSE not the actual value
to legare coleman, i would like to say thank you for your suggestion, on CSV values i hope to tryit out shortly and see what difference it makes to the working i have used to get round the problem in the past.
than you to yoyophil and to legare for all the help they have give in resolving my queery -
H. Legare Coleman
AskWoody PlusJune 29, 2004 at 1:38 am #845679Running this macro on the sheet after the import might fix most of the problems:
Public Sub FixData() Dim oCell As Range Application.ScreenUpdating = False For Each oCell In ActiveSheet.UsedRange If Not oCell.HasFormula And Not IsError(oCell) Then If IsNumeric(Trim(oCell.Value)) Then If Len(Trim(oCell.Value)) > 3 Then oCell.NumberFormat = "0000000" Else oCell.NumberFormat = "General" End If oCell.Value = Trim(oCell.Value) End If End If Next oCell Application.ScreenUpdating = True End Sub
-
WSalexanderd
AskWoody LoungerJune 28, 2004 at 8:37 pm #845587i thought by using “#VALUE” i would remember what i had done and why i needed the 2nd sheet also for othere people to follow what i have done, your comments are welcome and i will change the sheet name to something more appropiate (don’t laugh) “ErrorValues”
on your second point. this is a down load from a proteus system and is a pain as i have to download as a CSV , change any numerical/text type numbers by
multiplying the noumber x 1— any suggestions for a better result would be appreciated -
H. Legare Coleman
AskWoody PlusJune 27, 2004 at 5:17 pm #845213Two comments about your workbook.
1- #Value is the error value that is returned when the wrong type of argument or operand is used in a formla. It is not a good idea to use this as the name of a worksheet. Not only might it confuse a user, but it can also possibly cause problems in a formula.
2- On your #Value worksheet, in the range A61:A63, the AccNo have a space after the number. That means that these three values are stored as text and all of the other values in this column are stored as numeric values. This can cause problems with formula like the SUMIF that you are using.
-
WSyoyophil
AskWoody LoungerJune 28, 2004 at 3:38 pm #845486Alex;
Here is an adjustment to your spreadsheet. I combined your formulas together and removed the redundant and uneeded columns. In G4 I placed
=IF(ISERROR(E4)=TRUE,SUMIF(‘#VALUE’!A:A,Sheet1!A4,’#VALUE’!E:E),E4)
and copied it down. Depending on how you get the results which are in column E (Route 1) you might be able to do this all in one column.
yoyoPHIL
Actually I don’t believe you need to have the =TRUE statement. Remove it if you want.
-
WSalexanderd
AskWoody Lounger -
WSalexanderd
AskWoody Lounger -
WSyoyophil
AskWoody LoungerJune 28, 2004 at 3:38 pm #845487Alex;
Here is an adjustment to your spreadsheet. I combined your formulas together and removed the redundant and uneeded columns. In G4 I placed
=IF(ISERROR(E4)=TRUE,SUMIF(‘#VALUE’!A:A,Sheet1!A4,’#VALUE’!E:E),E4)
and copied it down. Depending on how you get the results which are in column E (Route 1) you might be able to do this all in one column.
yoyoPHIL
Actually I don’t believe you need to have the =TRUE statement. Remove it if you want.
-
-
-
WSalexanderd
AskWoody LoungerJune 27, 2004 at 8:02 am #845184sorry for the delay in replying, unfortunately i was unable to get your suggestion to work most likely because you had nothing to go off, other than my wording.
here is the solution i eventually worked out (i’ve included a copy of the file for you
1) copy route1 to route 2
2) copy and paste the following in I4
=sumif(‘#VALUE’!A:A,sheet1!A4,’#VALUE’E:E)
3) H4 copy and paste
=if(true=iserror(G4),I4,G4)
4) copy H:H & paste special paste as values in route1
it works though is still messy
thank you for your in put
-
-
-
WSyoyophil
AskWoody LoungerJune 24, 2004 at 8:51 pm #844547Alex
Here is a stab at it. Sheet 1 has a formula in the E column which tries to run a simple calculation. Because some of the cell entries are text the result of the formula is #VALUE. I created this to mimic what you say is happening on your sheet. On the sheet called #Value the results from Sheet 1, column E are pulled into column A. In column B is a formula that looks at the results in A and if it does not find an error it keeps the result you have. Where it finds an error it places “sumif formula here”. Because I don’t understand your sumif formula, but you say it works, insert it into the formula in place of the “sumif formula here” statement adjusting for sheet names and ranges.
Hope this helps.
yoyoPHIL
WSalexanderd
AskWoody LoungerWSyoyophil
AskWoody LoungerJune 24, 2004 at 8:01 pm #844519Viewing 1 reply thread -

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
-
Practice what you preach! A cautionary tale.
by
RetiredGeek
1 hour, 28 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
8 hours, 2 minutes ago -
Win 11 24H2 Home or Pro?
by
CWBillow
6 hours, 59 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
16 hours, 29 minutes ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
1 day, 4 hours ago -
Problem using exfat drives for backup
by
Danmc
1 day, 4 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
6 hours, 42 minutes ago -
Change Info in the Settings window
by
CWBillow
1 day, 11 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
1 day, 17 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
1 day, 3 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
1 day, 4 hours ago -
WuMgr operational questions
by
Tex265
6 hours ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
2 days, 9 hours ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
1 day, 9 hours ago -
Backing up Google Calendar
by
CWBillow
2 days, 15 hours ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
3 days, 4 hours ago -
File Naming Conventions (including Folders)
by
Magic66
2 days, 3 hours ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
3 days, 11 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
2 days, 22 hours ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
2 days, 4 hours ago -
Adding Microsoft Account.
by
DaveBRenn
3 days, 12 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
4 days, 12 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
4 days, 12 hours ago -
Windows 11 won’t boot
by
goducks25
2 days, 5 hours ago -
Choosing virtual machine product for Windows on Mac
by
peterb
4 days, 2 hours ago -
Rest in Peace
by
Roy Lasris
5 days, 7 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
2 days, 4 hours ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
5 days, 7 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
1 day, 23 hours ago -
Long Time Member
by
jackpet
5 days, 10 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.