Find the first % value > greater the 1% for each day

Jazntails

New Member
Joined
Nov 2, 2012
Messages
7
Need help figuring out a formula to dynamically find the first % value > greater the 1% for each day.
And also the record number or line.
column A-D is the data set. Very large data set.
column H-J is on a different sheet.
I've used "match(" to find a record number but can't figure out how to get it to dynamically lookup the dates in column A.
I've used "index(" and "match(" to find the record of the first % value > greater the 1% for a day not dynamically.
Any help would be amazing.
View attachment 83076
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
pic below
 

Attachments

  • test1.png
    test1.png
    74.6 KB · Views: 5
Upvote 0
What version of excel are you using?
Please put what version of excel you use in your profile as a solution in one version of excel will not work in other.
 
Upvote 0
Hi, see the linked file for a possible solution...

The formulas used in the table:
I4: =IFERROR(MATCH(1,(A:A=H4)*(D:D>0.01),0)-MATCH(1,(A:A=H4)*1,0)+1,"")
J4: =IFERROR(INDEX(D:D,MATCH(1,(A:A=H4)*(D:D>0.01),0)),"")

test1.xlsx
 
Upvote 0
You can try this as well. This give you the location to use in the index formula.
Excel Formula:
=1/MAX(IFERROR(1/((--(F3=$A$3:A27))*(--($D$3:D27>0.01))*(ROW($A$3:A27)-ROW($A$3)+1)),0))

Book1
ABCDEFGH
1
2DateTimeBal%
318-Feb-2311:00475.00-5.00%18-Feb-234
418-Feb-2312:27492.15-1.57%17-Feb-23
518-Feb-2312:47500.900.18%16-Feb-23
618-Feb-2313:02510.652.13%15-Feb-23
718-Feb-2313:10518.283.65%14-Feb-23
Sheet2
Cell Formulas
RangeFormula
G3G3=1/MAX(IFERROR(1/((--(F3=$A$3:A27))*(--($D$3:D27>0.01))*(ROW($A$3:A27)-ROW($A$3)+1)),0))
 
Upvote 0
Thanks.. works well.
How do I add to the formula if not a positive % day, Cell J4 want to return the last % for the day?
Cell I4 return the total records for the day?
 
Upvote 0
what version of excel are you using? can you install a mini worksheet using the xl2bb add in (link below)?
 
Upvote 0
Hi, the new formulas for I4 and J4:
=IFERROR(IF(SUM((A:A=H4)*(D:D>0.01))=0,IF(SUM((A:A=H4)*1)=0,"",SUM((A:A=H4)*1)),MATCH(1,(A:A=H4)*(D:D>0.01),0)-MATCH(1,(A:A=H4)*1,0)+1),"")
=IFERROR(IF(SUM((A:A=H4)*(D:D>0.01))=0,INDEX(D:D,MATCH(H4,A:A,0)+SUM((A:A=H4)*1)-1),INDEX(D:D,MATCH(1,(A:A=H4)*(D:D>0.01),0))),"")

test2.xlsx
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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