Get the Dates

anneb_87

Board Regular
Joined
Jun 13, 2018
Messages
84
Hi Experts!

I need to get the deadlines:

ClientDeadline
A21st - 25th of the Month
B
C
D

Here is the source file:


Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
# of Clients914221510
Client List
Monthly
BJEAF
DKL
G
Quarterly
IH

Is this possible?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Maybe this? Drag the formula down;

Book1
ABCDEF
1ClientDeadline
2A26th - 31st of the Month
3B10th - 15th of the Month
4C
5D16th - 20th of the Month
6e21st - 25th of the Month
7f1st - 5th of the Following Month
8l1st - 5th of the Following Month
9h16th - 20th of the Month
10i10th - 15th of the Month
11
12
13
14Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
15# of Clients914221510
16Client List
17Monthly
18BJEAF
19DKL
20G
21
22
23Quarterly
24IH
Sheet1
Cell Formulas
RangeFormula
B2B2=IF(SUMPRODUCT(--($B$15:$F$24=$A2))=0,"",INDEX($B$14:$F$14,SUMPRODUCT(($B$15:$F$24=$A2)*(COLUMN($B$14:$F$14)-COLUMN($B$14)+1))))
 
Upvote 0
This works.
In that case this slightly shorter one may also work for you.

Book1
ABCDEF
1ClientDeadline
2A26th - 31st of the Month
3B10th - 15th of the Month
4C 
5D16th - 20th of the Month
6e21st - 25th of the Month
7f1st - 5th of the Following Month
8l1st - 5th of the Following Month
9h16th - 20th of the Month
10i10th - 15th of the Month
11
12
13
14Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
15# of Clients914221510
16Client List
17Monthly
18BJEAF
19DKL
20G
21
22
23Quarterly
24IH
Get Deadline
Cell Formulas
RangeFormula
B2:B10B2=IF(COUNTIF(B$15:F$24,A2),INDEX($14:$14,SUMPRODUCT((B$15:F$24=A2)*(COLUMN(B$15:F$24)))),"")
 
Upvote 0
.. or even this if you have the CONCAT function in your version of Excel. It is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}. The formula can then be copied down. This one also does not need the initial check to see if the Client actually appears in the lower range.

Book1
ABCDEF
1ClientDeadline
2A26th - 31st of the Month
3B10th - 15th of the Month
4C 
5D16th - 20th of the Month
6e21st - 25th of the Month
7f1st - 5th of the Following Month
8l1st - 5th of the Following Month
9h16th - 20th of the Month
10i10th - 15th of the Month
11
12
13
14Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
15# of Clients914221510
16Client List
17Monthly
18BJEAF
19DKL
20G
21
22
23Quarterly
24IH
Get Deadline
Cell Formulas
RangeFormula
B2:B10B2{=CONCAT(IF(B$15:F$24=A2,B$14:F$14,""))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
I have additional question of this. I need to populate the count of funding

Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
Funding
Fully Insured???
Self Insured??
Client List
BJEAF
DKL
G


Here is the Funding list
ClientFunding
AFully Insured
BFully Insured
CFully Insured
DSelf Insured
 
Upvote 0
I had to count by client 1st then sumif on that;

Book1
ABCDEF
1Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
2Funding
3Fully Insured2
4Self Insured1
5
6Client List
7BJEAF
8DKL
9G
10
11ClientFundingClient Count
12AFully Insured1
13BFully Insured1
14CFully Insured0
15DSelf Insured1
Sheet1
Cell Formulas
RangeFormula
B3B3=SUMIFS($C$12:$C$15,$B$12:$B$15,A3)
C12C12=SUMPRODUCT(--($B$7:$F$9&B12=A12&B12))
 
Upvote 0
I have additional question of this.
That doesn't indicate which suggestion you used for the first part or whether you have the CONCAT function.
If you do have the CONCAT function then you would also have the TEXTJOIN function so for the follow-up question you could try this. Again an array formula so entered as described previously.

Book1
ABCDEF
14Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
15# of Clients914221510
16Client List
17Monthly
18BJEAF
19DKL
20G
21
22
23Quarterly
24IH
25
26Funding
27Fully Insured2
28Self Insured1
29
30ClientFunding
31AFully Insured
32BFully Insured
33CFully Insured
34DSelf Insured
Get Deadline (2)
Cell Formulas
RangeFormula
B27:B28B27{=COUNT(SEARCH("|"&B$18:F$20&"|"&A27&"|","|"&TEXTJOIN("|",1,A$31:B$34)&"|"))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
hmmmm.. I did try your formula
That doesn't indicate which suggestion you used for the first part or whether you have the CONCAT function.
If you do have the CONCAT function then you would also have the TEXTJOIN function so for the follow-up question you could try this. Again an array formula so entered as described previously.

Book1
ABCDEF
14Date Range10th - 15th of the Month16th - 20th of the Month21st - 25th of the Month26th - 31st of the Month1st - 5th of the Following Month
15# of Clients914221510
16Client List
17Monthly
18BJEAF
19DKL
20G
21
22
23Quarterly
24IH
25
26Funding
27Fully Insured2
28Self Insured1
29
30ClientFunding
31AFully Insured
32BFully Insured
33CFully Insured
34DSelf Insured
Get Deadline (2)
Cell Formulas
RangeFormula
B27:B28B27{=COUNT(SEARCH("|"&B$18:F$20&"|"&A27&"|","|"&TEXTJOIN("|",1,A$31:B$34)&"|"))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


hmmm I did try your formula but I was not able to get tha value..

{=COUNT(SEARCH("|"&$C$21:$G$45&"|"&$B$16&"|","|"&TEXTJOIN("|",1,'Account Listing'!$A:$G&"|")))}

in the Account Listing tab, column A had the account name then column G had the Funding type
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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