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: 3
Default Excel selective search for a combination of values - urgent

Hi All !

I have a problem to solve using some sort of a simple method in excel.

I have 2 columns
Mark Country(can be A or B)
10 A
20 B
30 A
40 B
50 A
60 A
70 A
80 A
90 B
150 B
so here the average of marks = 55
and A:B = 3:2

Now I need to select say 5 Marks from above table which has the 3A's and
2B's and has an average of 55.

Even something using MS Query could be of good help.

I tried this query ( it gives me repetitive values but the correct result
set.)
But my table will have say 1000 rows and I need to select something like 100
values and i'll die even if I think of creating a query like this.

SELECT table1.Spd AS 'a1', table1.Region as 'r1', table2.Spd AS 'a2',
table2.Region as 'r2',
table3.Spd AS 'a3', table3.Region as 'r3'
FROM `C:\test\tesmporart`.table2 table1,
`C:\test\tesmporart`.table2 table2,
`C:\test\tesmporart`.table2 table3
WHERE ((table1.Spd+table2.Spd+table3.Spd)/3=60) AND (table1.Region='A') AND
(table2.Region='A') AND (table3.Region='A') and (table1.Spd < table2.Spd)
and
(table1.Spd < table3.Spd) and (table2.Spd < table3.Spd)


Any simple efficient way would be of great help.
(I know I can write an algo using macros and stuff.. ..but I don't want to
do that ...any short , simple , sweet way would be great. .. :))

--
Shanks

 
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
Search for non-consecutive combination of words in Excel. Dr.Robert Excel Discussion (Misc queries) 1 July 20th 09 06:43 PM
Very Urgent - Find / Search Help Needed TGV Excel Discussion (Misc queries) 8 June 28th 09 03:00 PM
Data Validation - combination of values Suzanne Excel Discussion (Misc queries) 3 January 3rd 07 01:11 AM
URGENT: Search for text in column and count by month saras Excel Discussion (Misc queries) 1 April 13th 06 03:00 AM
counting rows depending on 2 selective values Acid-Sky Excel Discussion (Misc queries) 1 September 1st 05 05:45 PM


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