Using the text from another cell to in a part of a array

castropereira

New Member
Joined
May 8, 2019
Messages
1
I have a table with some values that i want to sum according the year, name a store, and them according the current month...

(I want to sum the accumulated values since the beginning of the month)

I have a VLookup that gets me the text i want in the array:

[TABLE="width: 221"]
<colgroup><col width="221" style="width: 166pt;"></colgroup><tbody>[TR]
[TD="class: xl63, width: 221, bgcolor: #FCE4D6"]4[/TD]
[/TR]
[TR]
[TD="class: xl64"]4,5[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: #FCE4D6"]4,5,6[/TD]
[/TR]
[TR]
[TD="class: xl65"]4,5,6,7[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: #FCE4D6"]4,5,6,7,8[/TD]
[/TR]
[TR]
[TD="class: xl65"]4,5,6,7,8,9,10[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: #FCE4D6"]4,5,6,7,8,9,10,11[/TD]
[/TR]
[TR]
[TD="class: xl65"]4,5,6,7,8,9,10,11,12[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: #FCE4D6"]4,5,6,7,8,9,10,11,12,13[/TD]
[/TR]
[TR]
[TD="class: xl65"]4,5,6,7,8,9,10,11,12,13,14[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: #FCE4D6"]4,5,6,7,8,9,10,11,12,13,14,15[/TD]
[/TR]
[TR]
[TD="class: xl65"]4,5,6,7,8,9,10,11,12,13,14,15,16[/TD]
[/TR]
</tbody>[/TABLE]


And using a concatenate i get in the cell per. eg. F2 {[FONT=Arial, sans-serif]4,5,6,7,8,9,10,11,12}[/FONT]

[FONT=Arial, sans-serif]After getting this value i want to use it in my array:

[/FONT]=SUM(VLOOKUP(CONCATENATE(C2;C6);ORCAMENTOS!B:P;F2;FALSE))

By typing the value in F2 it all works by pressing ctr+shif+enter... with F2... no result...

i?m getting #ref as an error...

any helP
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I stand to be corrected but i dont think you can do that with native formulas. I certainly dont know how if you can. If you numbers are always consecutive then there are other formulas you could use.
 
Upvote 0
If the months are consecutive then you should be able to do this in another way, perhaps using SUMIF/SUMIFS.
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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