combining text with an array formay

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,603
Office Version
  1. 2021
Platform
  1. Windows
I have tried to combine the text with an array formula, but can't get it right


Code:
 ="The Sales Report as at "&B1 "&INDEX(D:D,MATCH(1,SEARCH("*grand*",A:A)))


It would be appreciated if someone could assist me
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
What is that formula supposed to do?
What output do you want from what inputs?

BTW, the SEARCH is looking for "*grand*" in the cells, the * is not acting like a wildcard in that usage.
 
Upvote 0
The formula must return Sales Report for June 2018 (cell B1) and the value of Array formula for eg Sales Report for June 2018 amounts to $ 915250


I inadvertently forgot to add text "amounts to"
 
Upvote 0
See Sample Data below to give a clearer picture



Book1
ABCD
1BR1Jun-2018-R62,863.41
2
3RefSales
4KL-001-1,770.00
5KL-002-28,714.84
6KL-003-17,881.59
7KL-004-66.67
8KL-005-5,500.00
9KL-006-16.67
10KL-007-266.67
11KL-008-17.33
12KL-009-9,333.33
13KL-010703.68
14Grand Total-62,863.41
15
Sheet1
Cell Formulas
RangeFormula
D1{=INDEX(D:D,MATCH(1,SEARCH("*grand*",A:A)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
I don't see the string "grand" anywhere in that data set.
In words, what do you want that formula to do?
 
Upvote 0
Try this modified formula
Code:
="The Sales Report as at "&B1&INDEX(D:D,MATCH(1,SEARCH("*grand*",A:A)))
Remove the extra space at the beginning of formula
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
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