Extract Data From Table vertically according to tow criterias

Excel777

Well-known Member
Joined
Jul 3, 2009
Messages
912
Office Version
  1. 2019
hello,

i want to get data from first table vertically depending on two criterias value between 90,100
wish find non array formula
results coulmn M
taking in consinderation if i have two values on the same date the criteria applied in it it extract them.
thanks in advance for help
Sheet1

*ABCDEFGHIJKLM
1DateGroup1Group2Group3Group4Group5Group6Group7Group8Group9*DateExtracted Values
21/1/2016153140287158687748*1/1/2016*
31/2/20161667184764662824*1/2/2016*
41/3/201667474445258144472*1/3/2016*
51/4/2016599521031920810*1/4/201695
61/5/201690502563828201689*1/5/201690
71/6/2016704605146800400629*1/6/2016*
81/7/2016147821181248591733*1/7/2016*
91/8/201659518298020120170*1/8/201698
101/9/201670234625485365358*1/9/2016*
111/10/201619186835638268899*1/10/2016*
121/11/20163032957627595738*1/11/201695
131/12/20161533794288911921*1/12/201694
141/13/2016684336991464547*1/13/201691
151/14/201615364171231594964*1/14/201694
161/15/201679892742525409532*1/15/201695
171/16/201661216258173226697*1/16/2016*
181/17/2016557782202155663371*1/17/2016*
191/18/2016371683566276327*1/18/2016*
201/19/2016343398756948783*1/19/201698
211/20/201636128358372964616*1/20/201696
221/21/20164392825249133049*1/21/201691

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
so the rsults can strat from column M and drag across according the number of values found (one found, tow founds, three founds.......
 
Last edited:
Upvote 0
Hi

try

M2 =SUMPRODUCT(($A$2:$A$22=L2)*(B2:J2>=90)*(B2:J2<=100)*(B2:J2)) copy down

for hide zero format column M as [=0]""
 
Upvote 0
Hi

try

M2 =SUMPRODUCT(($A$2:$A$22=L2)*(B2:J2>=90)*(B2:J2<=100)*(B2:J2)) copy down


for hide zero format column M as [=0]""

its so great dear but i have have two values meet the condition at the same date how can i get them?
 
Last edited:
Upvote 0
any ideas to get the two value at same date meet the criteria metioned
 
Upvote 0
In M2, copied across and down, try

=IF(LARGE($B2:$J2,COUNTIF($B2:$J2,">100")+COLUMNS($M2:M2))>=90,LARGE($B2:$J2,COUNTIF($B2:$J2,">100")+COLUMNS($M2:M2)),"")

You didn't say that order was important so this extracts from largest down.
 
Upvote 0
First of all many thanks dear, for your help,

i tried to make a modification in the formula by adding two more criterias and to get results from smallest to largest but it failed can you help to fix the error
Sheet1

*BCDEFGHIJKLMNOPQRSTUVWXYZAA
24093501009814701950*My Error Formula50709398100#NUM!#NUM!#NUM!#NUM!#NUM!#NUM!#NUM!#NUM!#NUM!#NUM!
3**********Desires Results For Data Between 40,50 and 90,1004050509398100*********

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
M2=IF(SMALL($B2:$J2,COUNTIF($B2:$J2,">50")+COLUMNS($M2:M2))>=40,SMALL($B2:$J2,COUNTIF($B2:$J2,">50")+COLUMNS($M2:M2)),
IF(SMALL($B2:$J2,COUNTIF($B2:$J2,">100")+COLUMNS($M2:M2))>=90,SMALL($B2:$J2,COUNTIF($B2:$J2,">100")+COLUMNS($M2:M2)),""))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4



In M2, copied across and down, tr

=IF(LARGE($B2:$J2,COUNTIF($B2:$J2,">100")+COLUMNS($M2:M2))>=90,LARGE($B2:$J2,COUNTIF($B2:$J2,">100")+COLUMNS($M2:M2)),"")

You didn't say that order was important so this extracts from largest down.
 
Last edited:
Upvote 0
Excel Workbook
ABCDEFGHIJKLMNOPQRS
1DateGroup1Group2Group3Group4Group5Group6Group7Group8Group9DateValues
21/1/201640935010098147019501/1/20164050509398100
Check values (2)
 
Upvote 0

Forum statistics

Threads
1,216,558
Messages
6,131,400
Members
449,648
Latest member
kyouryo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top