#VALUE! Error

juneau730

Board Regular
Joined
Jun 7, 2018
Messages
111
I am at my wits end. I have a spreadsheet that was created by someone else, that has a lot of embedded formulas in it. We need these formulas to simplify a large audit we before, but when specific fields are empty, others display the #VALUE ! error.

I have tried different conditional formatting of the cells, such as the ;;; trick, I have tried the IFERROR (,0) trick, none of them work.

I really need to make the #VALUE ! error hidden or null, but still process the formulas when needed. I am trying to add a macro to the workbook, to automate our data moves throughout the different worksheets, but the #VALUE ! error is stopping the macros from processing.

Any help would be greatly appreciated.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
What formulas are in the fields that are 'empty'?
 
Upvote 0
This is one of the cell formulas for a cell that displays the #VALUE ! error.

=DAYS(TODAY(),F2)

Here is the formula from cell F2 that, when populated (with a date in this case) would display a numerical value in cell J2 (where the #VALUE ! is)

=IF('VistA RAW DATA'!F2="","",DATEVALUE(LEFT('VistA RAW DATA'!F2,12)))

If I saw where to, I would upload the workbook
 
Upvote 0
maybe remove datevalue so it looks like this?

Code:
=IF('VistA RAW DATA'!F2="","",LEFT('VistA RAW DATA'!F2,12))
 
Upvote 0
wait nevermind that probably isnt it
i'm using excel 2007 which doesnt have the days function but just going of the support office site it says

If date arguments are strings that cannot be parsed as valid dates, DAYS returns the #VALUE ! error value.

so i thought using datevalue to get the date serial number like 43327 wouldnt work when used in the days function but i dont see why it shouldnt
 
Upvote 0
I think the problem could be that your formulas could be returning "".

You might not want to change that but it should be able to deal with the #VALUE ! errors.

For example in you could have this in J2.

=IFERROR(DAYS(TODAY(),F2),"")

Another option might be to return 0 rather than "" and then use formatting to show empty cells rather than 0s.
 
Upvote 0
Thanks all, I will try the suggestions and see what happens. I had tried the IFERROR before and it didn't "hide" the #VALUE ! but that could mean I had the format incorrect.
 
Upvote 0
@Norie, I tried your IFERROR and I must have had the formatting incorrect when I originally started on this. It "hide" the #VALUE ! error on the cells I tried it on. Now to go through the whole doc and apply it, then test my macros.

Now to figure out a quick way to change the formulas, without having to go one cell at a time.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top