LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default SQL - As part of an aggregate function ERROR

I am trying to extract the first digit of a list of numbers and related count
of those numbers. In the following SQL statement I get the error "You are
trying to use mid(F1,1,1) as part of an aggregate function error. I am not
sure what that means and can't find it in the help files.

SELECT mid(F1,1,1), COUNT(mid(F1,1,1)) FROM [" & strRange1 & "]

Any ideas? I have tried using "Group by" witht the same error. Anytime
Count is included in any form I seem to get that error.

Thanks,
Dave

 
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
Aggregate tables nc Excel Discussion (Misc queries) 0 September 12th 08 03:35 PM
Aggregate Unique part no in cells to sum qty Marty Marshfield Excel Discussion (Misc queries) 4 September 20th 07 02:06 AM
how do I aggregate dates Johnopp Excel Discussion (Misc queries) 5 March 5th 06 10:26 PM
aggregate calculations [email protected] Excel Discussion (Misc queries) 0 May 26th 05 04:32 PM
How to aggregate in Excel? Frank Krogh Excel Programming 1 March 4th 04 02:31 PM


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

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"