Pulling Data if Greater Than or Less Than

sacajamo

New Member
Joined
May 9, 2007
Messages
18
On the final part of a spreadsheet I'm working on, I want to pull in data from the win/loss column only if it meets the criteria of a Tier 3 loss (Greater than -$3.01 but less than -$1.99). For the example below, the only one that should be pulled into a Tier 3 Loss is the -$2.64. I am trying to do an IF A7 is greater than -$3.01 but less than -$1.99, then A7 formula but can't quite nail it. Any suggestions?

Win/LossTier 3 Loss
-$2.00--$3.00
1.96
-0.87
0.80
-0.26
-2.64
2.05
0.56
0.52
2.05
3.00
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this.
Mappe20
ABC
1-3
2-2
31,96-2,64
4-0,87
50,8
6-2,64
72,05
Tabelle1
Cell Formulas
RangeFormula
C3C3=FILTER(A3:A7,(A3:A7>C1)*(A3:A7<C2))
 
Upvote 0
Hmm--I actually have 6 "tiers" or categories that I wanted to pull into. See below. I wanted to set up formulas in the Tier columns to pull in from the win/loss column based on how much the win or loss was. So I wanted it to look like this below. For example, on the first row, $1.96 win, could here be a formulat that says "If the amount in A3 is greater to or equal to $1.00, and greater to or less than $1.99, populate this cell with A3". Possible?

Win/LossTier 3 LossTier 2 LossTier 1 LossTier 1 ProfitTier 2 ProfitTier 3 Profit
-$2.00--$3.00-$1.00--$1.99$.00--$.99$.00-$.99$1.00-$1.99$2.00-$3.00
$1.96
$1.96​
-$0.87
-$0.87​
$0.80
$0.80​
-$0.26
-$0.26​
-$2.64
-$2.64​
$2.05
$2.05​
$0.56
$0.56​
$0.52
$0.52​
$2.05
$2.05​
$3.00
$3.00​
 
Upvote 0
You could actually make it a bit simpler if you restructured your table slightly, like this:

Book1
ABCDEFG
1Win/LossTier 3 LossTier 2 LossTier 1 LossTier 1 ProfitTier 2 ProfitTier 3 Profit
2Upper-$2.00-$1.99-$0.99$0.99$1.99$3.00
3Lower-$3.00-$1.00$0.00$0.00$1.00$2.00
4$1.96    $1.96 
5-$0.87      
6$0.80   $0.80  
7-$0.26      
8-$2.64-$2.64     
9$2.05     $2.05
10$0.56   $0.56  
11$0.52   $0.52  
12$2.05     $2.05
13$3.00     $3.00
Sheet1
Cell Formulas
RangeFormula
B4:G13B4=IF(AND($A4>=B$3,$A4<=B$2),$A4,"")
 
Upvote 0
Solution
Using the format @kevin9999 suggested, an option with 365 is
Book2
ABCDEFG
1Win/LossTier 3 LossTier 2 LossTier 1 LossTier 1 ProfitTier 2 ProfitTier 3 Profit
2Upper-2-1.99-0.990.991.993
3Lower-3-10012
41.96    1.96 
5-0.87-0.87
60.80.8
7-0.26-0.26
8-2.64-2.64
92.052.05
100.560.56
110.520.52
122.052.05
1333
Sheet7
Cell Formulas
RangeFormula
B4:G13B4=MAP($A$4:$A$13,LAMBDA(r,IF(MEDIAN(B2:B3,r)=r,r,"")))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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