Value Error Querie

Woblypegs

New Member
Joined
Apr 16, 2020
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Hi Folks, I have a spreadsheet I'm working on and in one column I have the formula

=IF(([@[Time (Hrs)]]*[@[Rate (Hrs)]])-([@[$ Paid]]+[@[Admin Fee]])=0,"✓",([@[Time (Hrs)]]*[@[Rate (Hrs)]])-([@[$ Paid]]+[@[Admin Fee]])).

right down the entire column it gives me the correct answers in each cell except one, where it comes up with a value error. The data is the same it's all formatted correctly and the same, but, in this one cell it gives me that value error. However if I change the formula to,

=IF((SUM([@[Time (Hrs)]])*SUM([@[Rate (Hrs)]]))-(SUM([@[$ Paid]])+SUM([@[Admin Fee]]))=0,"✓",(SUM([@[Time (Hrs)]])*SUM([@[Rate (Hrs)]]))-(SUM([@[$ Paid]])+SUM([@[Admin Fee]])))

it fixes this problem. Now these are individual cells there is no merging of cells so I don't understand why this is happening. If anyone can enlighten me it would be awesome because this sort of **** does my head in.

I know I could use

=IFERROR(IF(([@[Time (Hrs)]]*[@[Rate (Hrs)]])-([@[$ Paid]]+[@[Admin Fee]])=0,"✓",([@[Time (Hrs)]]*[@[Rate (Hrs)]])-([@[$ Paid]]+[@[Admin Fee]]))."")

But I don't like using that and it says in any tutorials that I have seen that this is not advisable.

Many Thanks
Wobly
 
The actual worksheet that I'm working on can't be uploaded. The privacy laws I'd be breaking with the data that it contains would be unacceptable. Thanks for your help, but I'm going to rebuild that portion of the table from scratch to see if that fixes it. It can wait until tomorrow though. Will keep you posted.
If you cannot get it to work, copy that table out to a new file, and change all the sensitive fields (names, etc) so that you have a "dummy" file, and then upload that.

One potential place there could be problems is in your "blank" fields (columns N, O, P). You can use the LEN function to confirm they really are blank, i.e.
=LEN(N10)
=LEN(O10)
=LEN(P10)


They should all return 0. If they do not, then the field is not really blank. There is something in it that probably needs to be removed.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi Guys I got it working, I changed the formula from "=IF(([@[Time (Hrs)]]*[@[Rate (Hrs)]])-([@[$ Paid]]+[@[Admin Fee]])=0,"✓",([@[Time (Hrs)]]*[@[Rate (Hrs)]])-([@[$ Paid]]+[@[Admin Fee]]))." to
"=IF(SUM([@[$ Amount]],[@[Admin Fee]])-[@[$ Paid]]=0,"✓",SUM([@[$ Amount]],[@[Admin Fee]])-[@[$ Paid]])". This gives me the same result in column Q without any errors. The reason I had the top formula in in the first place was because I got a value error in any cell in Column Q where no data was entered in Columns H,I,N & O, and for some reason I didn't think of this latest one until now after having a little play. It seems to be working fine now and I thank you for your time and knowledge all these tips will be very helpful in the future.

Many Thanks
Wobly
 
Upvote 0
"Something else to try ...
Add a temporary column to the right of the table
In the problem row enter this formula
="Time:"&ISNONTEXT([@[Time (Hrs)]])&" Rate:"&ISNONTEXT([@[Rate (Hrs)]])&" Paid:"&ISNONTEXT([@[$ Paid]])&" Admin:"&ISNONTEXT([@[Admin Fee]])
which should return
Time:TRUE Rate:TRUE Paid:TRUE Admin:TRUE
If FALSE is returned, it tells you which value is in error

FIX - should fix the problem by replacing an invalid value with something Excel is happy to accept
For the 4 cells in problem row in columns "Time (Hrs)", " Rate (Hrs)", "$ Paid " & "Admin Fee " ...
... COPY the cell 2 rows above (ie a cell in a "grey" row)
... PASTE into problem row (simple paste NOT paste values)
... use F2 to amend the cell value to the correct value "


This has proven to be very useful indeed, Many Thanks.

Wobly
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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