need between data only

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
939
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team,

I need between Statement from Less than $500 to $5,000 or so between data will will be Total and Ending will be Dont know
output I need in P column and input are in M column and statement number will varies but Total and Dont know are standard

9.12.24 CreditCard_Cons prospect with rejection 1.xlsx
LMNOP
12195TotalLess than $500
13198Less than $500$500 - $999
14201$500 - $999$1,000 - $1,499
15204$1,000 - $1,499$1,500 - $1,999
16207$1,500 - $1,999$2,000 - $2,499
17210$2,000 - $2,499$2,500 - $2,999
18213$2,500 - $2,999$3,000 - $4,999
19216$3,000 - $4,999$5,000 or more
20219$5,000 or moreDon't Know
21222Don't KnowTOP 2 BOX (NET)
22225TotalI am currently looking around for the best offer on a credit card
23228TOP 2 BOX (NET)I am thinking about opening a new credit card within the next 6 months, but haven’t looked into it or done anything yet
24231I am currently looking around for the best offer on a credit cardI have no plans to get a new credit card right now or within the next 6 months
25234I am thinking about opening a new credit card within the next 6 months, but haven’t looked into it or done anything yetHigh school graduate or less
26237I have no plans to get a new credit card right now or within the next 6 monthsSome college
27240TotalGraduated from a 4 year college
UMHS
Cell Formulas
RangeFormula
L12L12=M10
M12:M27M12=INDIRECT("B"&L12)
L13:L27L13=L12+3
P12:P45P12=FILTER(M12:M50, (M12:M50<> "Total") * (M12:M50<> "None"), "No results")
Dynamic array formulas.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hello, could you please clarify what is that you need to return as I am not sure based on the description: either a) values between M12 and M21 or b) the output as shown in column P? If a) is correctm then are there supposedto be blank rows or just those categories?
 
Upvote 0
Hello, could you please clarify what is that you need to return as I am not sure based on the description: either a) values between M12 and M21 or b) the output as shown in column P? If a) is correctm then are there supposedto be blank rows or just those categories?
Hi Sofia,

Thank you for looking into it.

I need only statements between Total and Dontknow from Column M to Column P.

Just to simplify this I need data from Column A to Column D (output)
so what ever I have a statements under Total and Dontknow I need all the statements (A3 to A10)

book1
ABCD
1Input Output
2TotalLess than $500
3Less than $500$500 - $999
4$500 - $999$1,000 - $1,499
5$1,000 - $1,499$1,500 - $1,999
6$1,500 - $1,999$2,000 - $2,499
7$2,000 - $2,499$2,500 - $2,999
8$2,500 - $2,999$3,000 - $4,999
9$3,000 - $4,999$5,000 or more
10$5,000 or more
11Don't Know
12Total
13TOP 2 BOX (NET)
14I am currently looking around for the best offer on a credit card
15I am thinking about opening a new credit card within the next 6 months, but haven’t looked into it or done anything yet
Sheet1
 
Upvote 0
Hello, many thanks for the clarification. Not sure what is in the whole data set so please test:

Excel Formula:
=LET(
a,A1:A15,
b,IFERROR(SEARCH("$",a),0),
FILTER(a,((b=1)+(b=11))))
 
Upvote 0
H
Hello, many thanks for the clarification. Not sure what is in the whole data set so please test:

Excel Formula:
=LET(
a,A1:A15,
b,IFERROR(SEARCH("$",a),0),
FILTER(a,((b=1)+(b=11))))
Hey Sofia,

Just tried the Formula and looks like it is only take data from B3 to B11 but my data is like dynamic end point can be any row
for example my Dont know is coming in Row 20 so my out will be from B3 to B19 since the end point of Dont know change but for sure we will have Dont know stub at any position

book1
ABCD
1Input Output
2TotalLess than $500
3Less than $500$500 - $999
4$500 - $999$1,000 - $1,499
5$1,000 - $1,499$1,500 - $1,999
6$1,500 - $1,999$2,000 - $2,499
7$2,000 - $2,499$2,500 - $2,999
8$2,500 - $2,999$3,000 - $4,999
9$3,000 - $4,999$5,000 or more
10$5,000 or more$5,000 or more
11$5,000 or moreTOP 2 BOX (NET)
12TOP 2 BOX (NET)I am currently looking around for the best offer on a credit card
13I am currently looking around for the best offer on a credit cardI am thinking about opening a new credit card within the next 6 months, but haven’t looked into it or done anything yet
14I am thinking about opening a new credit card within the next 6 months, but haven’t looked into it or done anything yetI have no plans to get a new credit card right now or within the next 6 months
15I have no plans to get a new credit card right now or within the next 6 monthsTotal
16TotalHigh school graduate or less
17High school graduate or lessSome college
18Some collegeGraduated from a 4 year college
19Graduated from a 4 year college
20Don't Know
21Doctoral Degree
22Prefer not to answer
Sheet1
 
Upvote 0
But in expected result It is shown Dont Know (P20). Try
Excel Formula:
=Filter(M12:M50,(M12:M50<>"Total")+(M12:M50<>"Don't Know"))
Hi Srinivas,

Thank you so much for your time on this :)
I have tried your FS but looks like i am getting more stubs after Dont know as my Starting point is Total and ending will be Dont know but with this formula I am getting below statements which are below Dont know

could you please ref the below table

9.12.24 CreditCard_Cons prospect with rejection 1.xlsx
MNOP
12TotalTotal
13Less than $500Less than $500
14$500 - $999$500 - $999
15$1,000 - $1,499$1,000 - $1,499
16$1,500 - $1,999$1,500 - $1,999
17$2,000 - $2,499$2,000 - $2,499
18$2,500 - $2,999$2,500 - $2,999
19$3,000 - $4,999$3,000 - $4,999
20$5,000 or more$5,000 or more
21Don't KnowDon't Know
22TotalTotal
23TOP 2 BOX (NET)TOP 2 BOX (NET)
24I am currently looking around for the best offer on a credit cardI am currently looking around for the best offer on a credit card
25I am thinking about opening a new credit card within the next 6 months, but haven’t looked into it or done anything yetI am thinking about opening a new credit card within the next 6 months, but haven’t looked into it or done anything yet
26I have no plans to get a new credit card right now or within the next 6 monthsI have no plans to get a new credit card right now or within the next 6 months
27TotalTotal
28High school graduate or lessHigh school graduate or less
29Some collegeSome college
30Graduated from a 4 year collegeGraduated from a 4 year college
31Master’s DegreeMaster’s Degree
32Doctoral DegreeDoctoral Degree
33Prefer not to answerPrefer not to answer
34Technical School or Vocational TrainingTechnical School or Vocational Training
35TotalTotal
36Single (never married)Single (never married)
UMHS
Cell Formulas
RangeFormula
P12:P50P12=FILTER(M12:M50,(M12:M50<>"Total")+(M12:M50<>"Don't Know"))
M12:M36M12=INDIRECT("B"&L12)
Dynamic array formulas.
 
Upvote 0
Thanks for the feedback. One more question: within your example it seems that the chain is Total (M12) - Don't Know (M21) - Total (M22) - Total (M27). The question is which "Total", i.e. either M22 or M27, is the one where the next extraction should start - what is the criterium?
 
Upvote 0

Forum statistics

Threads
1,221,531
Messages
6,160,367
Members
451,642
Latest member
mirofa

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