need help with formula

Joefried

New Member
Joined
Aug 5, 2011
Messages
37
hi please help

i need help with the following info

bring me results from sheet2 A:A when you find 0.01 or more on that row in B
but i need one answer per line and do not duplicate the same answer twice

Best Regards
Joe
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
hi please help

i need help with the following info

bring me results from sheet2 A:A when you find 0.01 or more on that row in B
but i need one answer per line and do not duplicate the same answer twice

Best Regards
Joe
Can you post some sample data and show us what result you expect?
 
Upvote 0
Hi and thanks for looking at my question

these is what i have


2705730962 $0.00
2904352269 ($9.95)
2904352269 ($0.10)
2805062125 ($0.10)
2805013406 $0.10
2805013406 $0.00
2705730964 $0.10
2705730964 $0.00
2904327435 ($10.08)
2904330043 ($0.10)
2904330043 ($0.61)
2805085086 ($0.10)
2705730962 $0.10
2705730962 $0.00
2805013406 $0.10
2805013406 $0.00
2904313230 $0.10

and this is what i want


2805013406
2705730964
2705730962
2805013406
2904313230

again look in sheet2 row B for an amount that's more then 0.01 and when you find it bring me back results from row A but don't duplicate

thanks
 
Upvote 0
Hi and thanks for looking at my question

these is what i have


2705730962 $0.00
2904352269 ($9.95)
2904352269 ($0.10)
2805062125 ($0.10)
2805013406 $0.10
2805013406 $0.00
2705730964 $0.10
2705730964 $0.00
2904327435 ($10.08)
2904330043 ($0.10)
2904330043 ($0.61)
2805085086 ($0.10)
2705730962 $0.10
2705730962 $0.00
2805013406 $0.10
2805013406 $0.00
2904313230 $0.10

and this is what i want


2805013406
2705730964
2705730962
2805013406
2904313230

again look in sheet2 row B for an amount that's more then 0.01 and when you find it bring me back results from row A but don't duplicate

thanks
Ok, you have a duplicate in the expected results.

Try this...

In the formulas I use the following named ranges:
  • Range1
  • Refers to: =Sheet1!$A$2:$A$18
  • Range2
  • Refers to: =Sheet1!$B$2:$B$18
Book1
ABCD
1Range1Range2_Uniques
22705730962$0.00_2805013406
32904352269($9.95)_2705730964
42904352269($0.10)_2705730962
52805062125($0.10)_2904313230
62805013406$0.10_
72805013406$0.00_
82705730964$0.10_
92705730964$0.00_
102904327435($10.08)_
112904330043($0.10)__
122904330043($0.61)__
132805085086($0.10)__
142705730962$0.10__
152705730962$0.00__
162805013406$0.10__
172805013406$0.00__
182904313230$0.10__
Sheet1

Enter this array formula** in D2:

=INDEX(Range1,MATCH(TRUE,(Range2>0.01),0))

Enter this array formula** in D3 and copy down until you get blanks:

=IF(SUM((Range2>0.01)*(COUNTIF(D$2:D2,Range1)=0)),INDEX(Range1,MATCH(1,(Range2>0.01)*(COUNTIF(D$2:D2,Range1)=0),0)),"")

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Assumes no empty cells within the data range of Range1.
 
Upvote 0
for some reason i cant get the first part to work which is the following info that i entered

=INDEX(C9:C1000000,MATCH(TRUE,E9:E1000000>0.01,0))
and the answer is Value
 
Upvote 0
for some reason i cant get the first part to work which is the following info that i entered

=INDEX(C9:C1000000,MATCH(TRUE,E9:E1000000>0.01,0))
and the answer is Value
If you have a million rows of data this will be slow as heck to calculate!

Maybe you should be doing this with a real database?

Did you enter the formula as an array?

Array formulas are entered differently than a regular formula. After you type in a regular formula you hit the ENTER key. With an array formula you *must* use a combination of keys. Those keys are the CTRL key, the SHIFT key and the ENTER key. That is, hold down both the CTRL key and the SHIFT key then hit the ENTER key.

When done properly Excel will enclose the formula in squiggly brackets { }. You can't just type these brackets in, you *must* use the key combo to produce them. Also, anytime you edit an array formula it *must* be re-entered as an array using the key combo.
 
Upvote 0
thank you
you were right and it didn't work because i forgot to do the ALT CTRL ENTER

however its not giving me a Unique answer it will reaped it and its basically coping from C:C every line
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,923
Latest member
JackiG

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