IF formula sometimes returning #VALUE! error unless I hit F2

ncjefffl

New Member
Joined
May 5, 2010
Messages
22
I'm getting a weirdness using the following formula (which uses labels):

=IF(ParOtc="PAR",SUM(NegNetBenAmt+POSNetBenAmt),Referral Amt)

NegNetBenAmt,PosNetBenAmt,Referral Amt and the cell in which the formula lives are all formatted the same (Accounting, 2 decimals). In some cells (same column) it works and in some I get the #VALUE! error. However, all I have to do is hit F2 and the #VALUE! error goes away and the correct number appears. I can live with the mystery if I must, but it's annoying to have to F2 my way down a column when there are dozens of cells to fix.

I've tried going into Options, Calculations and hitting "Calc Sheet" or "Calc Now(F9)" and nothing happens. Calculation is set to Automatic, Iteration is unchecked and under workbook options all are checked except Precision as displayed and 1904 date system.

Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I meant to ask: failing another solution, is there a way you can "F2" an entire column at once without having to "F2, enter" for each cell?
 
Upvote 0
Assuming you mean labels rather than defined names, I'd suggest you get out of that habit - Excel 2007 onward does not support it. I haven't used them for a very long time, but I seem to recall they weren't always reliable.
PS If you want a quick refresh, select the cells and do a Find/replace replacing = with =
 
Upvote 0
I did mean labels, not defined names and thanks for that info; good to know!

The find/replace = with = worked great. I'd still like to know why the problem is happening, but at least I have a much quicker fix now.

Thanks!
 
Upvote 0
So... it's almost 12 years later, and I'm having the exact same problem with the Office 365 version of Excel. And the same workaround works great for me as well. Microsoft continues to polish the turd.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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