Capture Text in a Range

MrDB4Excel

Active Member
Joined
Jan 29, 2004
Messages
334
Office Version
  1. 2013
Platform
  1. Windows
I have searched through dozens of web pages for answers to the following but to no avail.
In this Excel sheet, you see a list of months in column L with corresponding values in column M.
Next, in column N are running totals but because April is not finished then cell N6 is blank (does not yet have the formula to add M6 to N5).
Formulas are not yet inserted in N6 through N14 because elsewhere I am getting the value in column N that represents the total from the previous full months prior to the current month of April in this scenario.
So what formula can be inserted in column N that would only total all previous full months that have expired?
In addition, I also need to get a comma delineated list of the months that appear in column P. You can see I have formulas in P3 through P14.
In column Q you can see my attempts at getting this list of months prior to the current month but they contain commas that represent the empty cells. I do not want these commas to show.
Perhaps I am not creating a good working formula in the first place.

I would so appreciate some advice on how to solve this.

Bogus RangeCapture.xlsx
LMNOPQ
1April
2Each Month's Total
3January7,588.007,588.00JanuaryJanuary, February, March, , , , , , , , , ,
4February7,663.0015,251.00FebruaryJanuaryFebruaryMarch
5March11,543.0026,794.00MarchJanuary, February, March, , , , , , , , ,
6April1,520.00 
7May0.00 
8June0.00 
9July0.00 
10August0.00 
11September0.00 
12October0.00 
13November0.00 
14December0.00 
Sheet1
Cell Formulas
RangeFormula
L1L1=TEXT(TODAY(),"MMMM")
N3N3=M3
N4:N5N4=SUM(N3+M4)
Q3Q3=CONCATENATE("January, ","February, ","March, ",", ",", ",", ",", ",", ",", ",", ",", ",", ")
Q4Q4=CONCATENATE(P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14)
Q5Q5=P3&", "&P4&", "&P5&", "&P6&", "&P7&", "&P8&", "&P9&", "&P10&", "&P11&", "&P12&", "&P13&", "&P14
P3:P14P3=IFERROR(INDEX(L3:L14,MATCH(N3,N3:N14,0)),"")
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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