ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Function can not read cell value properly without enter (https://www.excelbanter.com/excel-discussion-misc-queries/171820-function-can-not-read-cell-value-properly-without-enter.html)

[email protected]

Function can not read cell value properly without enter
 
I am using an "if" function to compare two cells and the result is a
value from a third cell if true and nothing if false. No problems
with this function till I copy and paste special a value into the B7
cell.

=IF($B7=$L$5,$E7,)

It computes the result if the value in B7 is an alphanumeric value
(example "T5") but not if the value is numeric (example "5"). To get
the numeric value to work, I must click on the B7 cell and press
enter. I use an function in the cell I copy the values from; reason
for using paste special. Thoughts?

Ken

RagDyeR

Function can not read cell value properly without enter
 
The formula whose values you're copying into B7 is probably *not* a true XL
number.

A formula, something like this, would duplicate the problem you're having:

=If(A10,"25",B1)

Where the 25 is not truly a numeric value.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


wrote in message
...
I am using an "if" function to compare two cells and the result is a
value from a third cell if true and nothing if false. No problems
with this function till I copy and paste special a value into the B7
cell.

=IF($B7=$L$5,$E7,)

It computes the result if the value in B7 is an alphanumeric value
(example "T5") but not if the value is numeric (example "5"). To get
the numeric value to work, I must click on the B7 cell and press
enter. I use an function in the cell I copy the values from; reason
for using paste special. Thoughts?

Ken



daddylonglegs

Function can not read cell value properly without enter
 
Try changing to

=IF($B7&""=$L$5&"",$E7,)

" wrote:

I am using an "if" function to compare two cells and the result is a
value from a third cell if true and nothing if false. No problems
with this function till I copy and paste special a value into the B7
cell.

=IF($B7=$L$5,$E7,)

It computes the result if the value in B7 is an alphanumeric value
(example "T5") but not if the value is numeric (example "5"). To get
the numeric value to work, I must click on the B7 cell and press
enter. I use an function in the cell I copy the values from; reason
for using paste special. Thoughts?

Ken



All times are GMT +1. The time now is 12:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com