LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Newmoon
 
Posts: n/a
Default Formula retrieves wrong data


hello, world. ;)
i´ve got a workbook that retrieves data from an SQLserver.
on sheet 1 i´ve got a formula that gets data from sheet2 as long as
there´s no more current value on sheet 3.
i´m using this frmula:

Code:
--------------------


Code:
--------------------
=IF(ISBLANK(METRIC_Kname1_S2);METRIC_Kname1_S1;MET RIC_Kname1_S2)
--------------------

METRIC_Kname1_Sn are defined names of cells both on sheet 2 and 3.

unfortunately excel accepts the formula but executes it incorrect.

i always retrieve the value from sheet3, regardless of it´s value, even if it´is empty.
the next hting i tried was:

Code:
--------------------
=IF(Len(METRIC_Kname1_S2)=0;METRIC_Kname1_S1;METRI C_Kname1_S2)
--------------------

the result was the same as with the formula above.

for testing purposes i´ve hardcoded it this way:

Code:
--------------------
=IF(ISBLANK(METRIC_Kname1_S2);"the value of sheet2 is the most curent one";"there´s a more current one on sheet3")
--------------------


and it works!!
i become more and more despair of trying to find a formula that works... :(
is there anybody who could help me to solve the problem?
thanks a lot in advance ;)
Newmoon


--
Newmoon
------------------------------------------------------------------------
Newmoon's Profile: http://www.excelforum.com/member.php...o&userid=26172
View this thread: http://www.excelforum.com/showthread...hreadid=394905

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Paste is is copying in formula, but display is wrong. Matt Excel Worksheet Functions 2 December 7th 04 08:37 PM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"