LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
walshy06
 
Posts: n/a
Default Get value from Cell (after it is created by CountIF)


I need to be able to import data from one excel sheet to another.

Usually I use the following SQL to pull back data from the spreadsheet
I want.

select count(F14) from [Data spreadsheet$] where F14 = '1'

However, now the value that is stored in F14 (the field for which I
need for the where clause) is generated from a countif statement:

Cell value for rows in F14= COUNTIF(Q1582 : DU1582,"Correct"). In the
spreadsheet that I am pulling the data from (Data Spreadsheet), this
then puts a 1 if the countif brings back one count.

However when I try and pull this back using the following syntax in my
query (where F14 = '1') it will not pick it up.

So when I do a Select * from the spreadsheet, it is bringing back null
values for the F14 column even though they have a '1' in them. So I
presume my SQL or settings are not recognising it because it is put in
the cell from the countif function.

Any help would be great!!

Thanks!


--
walshy06
------------------------------------------------------------------------
walshy06's Profile: http://www.excelforum.com/member.php...o&userid=34132
View this thread: http://www.excelforum.com/showthread...hreadid=556021

 
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
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
How do you use countif for values in every four cell in a row Ring eye Excel Worksheet Functions 9 January 19th 06 10:55 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


All times are GMT +1. The time now is 08:35 AM.

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

About Us

"It's about Microsoft Excel"