Extracting Records With Partial Search

NickFru

New Member
Joined
Mar 10, 2022
Messages
48
Office Version
  1. 2019
Hi, I have a some data and just wanted to know the syntax of operation in order to extract a partial name search together with dates. On the attached below, I have done a count on =COUNTIFS(Date Range),">="&(Start Date),(Date Range),"<="&(End Date), First Name Range, "*"&First Name Extract"*".

I then am using the formula, =IF(ROWS(F5:F5)>Count, "", INDEX(DATE RANGE(AGGREGATE(15,6,(ROW(DATE RANGE)-ROW(A2)+1)/ISNUMBER(SEARCH(FIRST NAME RANGE,F2)+(DATE RANGE>=G2)+(DATE RANGE<=H2),ROWS(F5:F5)). When I put this formula in, I get a VALUE error.

Would anyone be able to assist to correct. I have attached.

DateFirst NameGroup
01/07/2024​
NickA
08/07/2024​
DaveB
15/07/2024​
HelenC
22/07/2024​
PaulA
29/07/2024​
TomB
05/08/2024​
JamesC
12/08/2024​
AlexB
19/08/2024​
CarolynA
26/08/2024​
NickC
02/09/2024​
AlexA
09/09/2024​
JamesB
16/09/2024​
HelenC
23/09/2024​
TomA
30/09/2024​
PaulB


First NameStart DateEnd DateCount
Ni
01/07/2024​
26/08/2024​
2​


DateFirst NameGroup
#VALUE!​


Thanks

Nick

























Nick
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDEFGHI
1DateFirst NameGroupFirst NameStart DateEnd DateCount
201/07/2024NickANi01/07/202426/08/20242
308/07/2024DaveB
415/07/2024HelenC
522/07/2024PaulA01/07/2024NickA
629/07/2024TomB26/08/2024NickC
705/08/2024JamesC   
812/08/2024AlexB   
919/08/2024CarolynA
1026/08/2024NickC
1102/09/2024AlexA
1209/09/2024JamesB
1316/09/2024HelenC
1423/09/2024TomA
1530/09/2024PaulB
Sheet5
Cell Formulas
RangeFormula
F5:H8F5=IF(ROWS(F$5:F5)>$I$2, "", INDEX(A$2:A$15,AGGREGATE(15,6,(ROW($A$2:$A$15)-ROW($A$2)+1)/(ISNUMBER(SEARCH($F$2,$B$2:$B$15)))/($A$2:$A$15>=$G$2)/($A$2:$A$15<=$H$2),ROWS(F$5:F5))))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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