Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Help creating a formula

Gord Dibben <gorddibbATshawDOTca wrote...
But OP wants the count to be 2 so he must have some kinda rule
that is not clear to the responders.............or himself<g

....

It's clear to the OP. He just expressed it poorly. At least to me it
looks like he wants something like (in Access 2003's @#$% SQL).


SELECT Count(*) AS ND_p
FROM (
SELECT T.p
FROM (
SELECT T1.p, Count(T1.f) AS nf, Count(T2.p) AS np
FROM [OP's Table] T1 INNER JOIN [OP's Table] T2 ON (T1.a=T2.a)
GROUP BY T1.a, T1.p
HAVING ((T1.a)='001')
) T
WHERE (T.nf=T.np)
);


Not something easily expressed in prose. Note: field names in SQL
above match OP's columns.

Reply
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
Creating a formula Lpool18 Excel Discussion (Misc queries) 1 June 4th 07 12:28 PM
Need help with creating a formula Kimberly New Users to Excel 7 January 14th 07 12:41 AM
I need help creating a formula jenn Excel Worksheet Functions 12 January 12th 07 02:35 PM
Creating a formula Dave Excel Worksheet Functions 1 May 15th 06 01:52 AM
I need help creating a formula Kim Excel Discussion (Misc queries) 11 November 19th 05 08:01 PM


All times are GMT +1. The time now is 03:41 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"