Textjoin and Sum the covered period for Google Sheets

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
333
Office Version
  1. 365
Platform
  1. Windows
I would like to textjoin the date every 1st and 4th times the name of the fruit appear then sum its qty and amount.


For example the apple. it appear on 1/7/24 (1st) then on 5/7/24 (4th) then sum the qty (2+3+3+9) and amount(16+45+44+43)
it appear again on 6/7/24 (1st) then on 10/7/24 (4th) then sum qty (8+2+9+5) and amount (12+41+19+32)


Date​
Name​
Qty​
Amount​
01-07-24​
Apple​
2​
16​
02-07-24​
Apple​
3​
45​
04-07-24​
Apple​
3​
44​
05-07-24​
Apple​
9​
43​
06-07-24​
Apple​
8​
12​
07-07-24​
Apple​
2​
41​
09-07-24​
Apple​
9​
19​
10-07-24​
Apple​
5​
32​



Book3
ABCDEFGHIJ
1DateNameQtyAmountExpected Result
201-07-24Apple216NameDate CoveredQtyAmount
301-07-24Banana235Apple1/7/24 - 5/7/2417148
401-07-24Cherry523Apple6/7/24 - 10/7/2424104
501-07-24Berry244Banana1/7/24 - 4/7/2415102
601-07-24Orange419Banana5/7/24 - 10/7/2426139
701-07-24Mangoe722Cherry1/7/24 - 4/7/2414138
802-07-24Apple345Cherry5/7/24 - 10/7/241475
902-07-24Banana719Berry1/7/24 - 4/7/2419121
1002-07-24Cherry350Berry5/7/24 - 9/7/2420115
1102-07-24Berry437Orange1/7/24 - 4/7/2418115
1202-07-24Orange346Mangoe1/7/24 - 5/7/2416115
1303-07-24Banana438
1403-07-24Cherry138
1503-07-24Berry729
1603-07-24Orange814
1703-07-24Mangoe127
1804-07-24Apple344
1904-07-24Banana210
2004-07-24Cherry527
2104-07-24Berry611
2204-07-24Orange336
2304-07-24Mangoe321
2405-07-24Apple943
2505-07-24Banana731
2605-07-24Cherry632
2705-07-24Berry642
2805-07-24Orange226
2905-07-24Mangoe545
3006-07-24Berry728
3106-07-24Orange431
3206-07-24Mangoe340
3306-07-24Apple812
3407-07-24Apple241
3507-07-24Banana623
3607-07-24Cherry310
3707-07-24Berry110
3807-07-24Orange941
3907-07-24Mangoe228
4008-07-24Mangoe1026
4109-07-24Apple919
4209-07-24Banana737
4309-07-24Cherry211
4409-07-24Berry635
4510-07-24Apple532
4610-07-24Banana648
4710-07-24Cherry322
4810-07-24Berry1014
Sheet7
 
Last edited by a moderator:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Please do not re-post this question. I will move to the correct section for you.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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