Adding rows based on comma value

smashclash

Board Regular
Joined
Nov 24, 2003
Messages
126
Office Version
  1. 365
Platform
  1. Windows
I have a set of data like below that I need to separate out. Rather than the data be broken out for each single instance of a name it's grouped together at times and summed the amt. So for example in the below picture I'd like Chip Dale and Vicky Micky to be in separate rows and each have an amount of $500. VBA could identify the need to break this out because of the comma in column A. Frank Tank in A3 would be no action since there are no commas. Chip Dale, Vicky Micky, Mike Ike in A5 would need two rows added and the 800 divided by 3 (266.67) since there are three names for the Amt.

For all the rows with commas the names should only appear one time after VBA runs. So it could work as follows. Search column A for a comma. FInd comma and insert the number of rows equivalent to the number of commas. Then adjust the Names so they only appear once. Example, search column A for comma, find one in Column A2. Clone row 2. Change name in row A2 to Chip Dale and amount to be 500. The new row added would be Vicky Micky and Amt is 500. Then repeat for any other commas in column A.



Names.PNG
 
something like this?

YearGroupBrandProduct LineIDAdvertiser_IDAdvertiser_NameBrand_IDBrand_NameLine_IDWebsite_IDStart_DateEnd_DateLineTypeCurrency_CodeRateEstimated_QtyEstimated_AmountActual_QtyActual_AmountIs_RONQty_ServedQty_Server_AsOfAuditStampWebsite_NameExternal_IDExternal_OrderIDAgency_NameStatusLineDescriptionSalesRepsIsNewsletterEstimatedNetActualNetFCEstimatedNetFCActualNetFCEstimatedAmountFCActualAmountProposalIDContractIDSizesRONWebsiteIDRONWebsiteNameSectionIDSectionNamePositionIDPositionNameHasPrePaymentCampaignTypeGLTypeIDGLTypeNameTrackingCurrenciesRatecardRateMaterialStatusCodeAdTypeIDAdTypeNameProductionControllerIDProductionControllerNameCampaignTypeDescriptionTCEstimatedNetTCActualNetTCEstimatedAmountTCActualAmountToolTipSelectedAdServerIDThirdPartyIDFourthPartyIDUDFAnswersCampaignDescription
2020 YTDPromoPromoLive Event100102434GilbertXXGilbert2511004090101/11/201901/11/2019FFUSD595016703.216703.2FALSE01.89186E+12Promo DCISStandard SponsorshipVickyMickyTRUE6703.26703.26703.26703.26703.26703.2Standard SponsorshipFALSEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]595023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]MM.9921
2020 YTDPromoPMVideo1002102590KTIXXKTI51931024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesseCoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51931024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVickyMickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51941024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesseCoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51941024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVickyMickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51951024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesseCoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51951024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVickyMickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51961024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesseCoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51961024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVickyMickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDTMNPPVideo1015102319SoftwareXXSoftware52591021040101/11/201901/11/2019FFUSD55001550015500FALSE01.89684E+12NPP VideoISTestimonial VideoChrisTopheTRUE550055005500550055005500Testimonial VideoFALSEM1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportPerformance0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPIPrint1016103217CopierA1Copier52651001030115/11/201915/11/2019FFUSD45001450014500FALSE01.90013E+12PI the MagWavemaker GlobalISFull PageChrisPilgrimFALSE450045004500450045004500Full PageFALSEM1001PrintSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]78751ROPN.SupportN.SupportPerformance0000FALSESystem.Collections.Generic.List`1[System.String]Fall Advertising
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver SponsorshipChrisPilgrimTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver SponsorshipChrisTopheTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver SponsorshipLaurenLillyTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52681025090108/11/201908/11/2019FFUSD10001100011000FALSE01.89684E+12PKI DPSISSponsor Additional Staff BadgeChrisPilgrimTRUE100010001000100010001000Sponsor Additional Staff BadgeTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]250023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play GolfChrisPilgrimTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play GolfChrisTopheTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play GolfLaurenLillyTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Yes! Only thing missing is the space in between the first and last name in the SalesRep column.
 
Upvote 0
check if this is ok
YearGroupBrandProduct LineIDAdvertiser_IDAdvertiser_NameBrand_IDBrand_NameLine_IDWebsite_IDStart_DateEnd_DateLineTypeCurrency_CodeRateEstimated_QtyEstimated_AmountActual_QtyActual_AmountIs_RONQty_ServedQty_Server_AsOfAuditStampWebsite_NameExternal_IDExternal_OrderIDAgency_NameStatusLineDescriptionSalesRepsIsNewsletterEstimatedNetActualNetFCEstimatedNetFCActualNetFCEstimatedAmountFCActualAmountProposalIDContractIDSizesRONWebsiteIDRONWebsiteNameSectionIDSectionNamePositionIDPositionNameHasPrePaymentCampaignTypeGLTypeIDGLTypeNameTrackingCurrenciesRatecardRateMaterialStatusCodeAdTypeIDAdTypeNameProductionControllerIDProductionControllerNameCampaignTypeDescriptionTCEstimatedNetTCActualNetTCEstimatedAmountTCActualAmountToolTipSelectedAdServerIDThirdPartyIDFourthPartyIDUDFAnswersCampaignDescription
2020 YTDPromoPromoLive Event100102434GilbertXXGilbert2511004090101/11/201901/11/2019FFUSD595016703.216703.2FALSE01.89186E+12Promo DCISStandard SponsorshipVicky MickyTRUE6703.26703.26703.26703.26703.26703.2Standard SponsorshipFALSEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]595023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]MM.9921
2020 YTDPromoPMVideo1002102590KTIXXKTI51931024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51931024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct Video Vicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51941024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51941024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct Video Vicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51951024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51951024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct Video Vicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51961024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51961024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct Video Vicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDTMNPPVideo1015102319SoftwareXXSoftware52591021040101/11/201901/11/2019FFUSD55001550015500FALSE01.89684E+12NPP VideoISTestimonial VideoChris TopheTRUE550055005500550055005500Testimonial VideoFALSEM1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportPerformance0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPIPrint1016103217CopierA1Copier52651001030115/11/201915/11/2019FFUSD45001450014500FALSE01.90013E+12PI the MagWavemaker GlobalISFull PageChris PilgrimFALSE450045004500450045004500Full PageFALSEM1001PrintSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]78751ROPN.SupportN.SupportPerformance0000FALSESystem.Collections.Generic.List`1[System.String]Fall Advertising
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver SponsorshipChris PilgrimTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver Sponsorship Chris TopheTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver Sponsorship Lauren LillyTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52681025090108/11/201908/11/2019FFUSD10001100011000FALSE01.89684E+12PKI DPSISSponsor Additional Staff BadgeChris PilgrimTRUE100010001000100010001000Sponsor Additional Staff BadgeTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]250023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play GolfChris PilgrimTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play Golf Chris TopheTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play Golf Lauren LillyTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
 
Upvote 0
Looks like it's putting a leading space on the Salesrep names to the rows that are added. Anyway to remove that?
 
Upvote 0
Now?
YearGroupBrandProduct LineIDAdvertiser_IDAdvertiser_NameBrand_IDBrand_NameLine_IDWebsite_IDStart_DateEnd_DateLineTypeCurrency_CodeRateEstimated_QtyEstimated_AmountActual_QtyActual_AmountIs_RONQty_ServedQty_Server_AsOfAuditStampWebsite_NameExternal_IDExternal_OrderIDAgency_NameStatusLineDescriptionSalesRepsIsNewsletterEstimatedNetActualNetFCEstimatedNetFCActualNetFCEstimatedAmountFCActualAmountProposalIDContractIDSizesRONWebsiteIDRONWebsiteNameSectionIDSectionNamePositionIDPositionNameHasPrePaymentCampaignTypeGLTypeIDGLTypeNameTrackingCurrenciesRatecardRateMaterialStatusCodeAdTypeIDAdTypeNameProductionControllerIDProductionControllerNameCampaignTypeDescriptionTCEstimatedNetTCActualNetTCEstimatedAmountTCActualAmountToolTipSelectedAdServerIDThirdPartyIDFourthPartyIDUDFAnswersCampaignDescription
2020 YTDPromoPromoLive Event100102434GilbertXXGilbert2511004090101/11/201901/11/2019FFUSD595016703.216703.2FALSE01.89186E+12Promo DCISStandard SponsorshipVicky MickyTRUE6703.26703.26703.26703.26703.26703.2Standard SponsorshipFALSEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]595023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]MM.9921
2020 YTDPromoPMVideo1002102590KTIXXKTI51931024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51931024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51941024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51941024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51951024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51951024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51961024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoJesse CoatTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDPromoPMVideo1002102590KTIXXKTI51961024040101/11/201901/11/2019FFUSD50015001250FALSE01.89684E+12PM VideoISProduct VideoVicky MickyTRUE500500500500500500Product VideoFALSEF1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]Product Video Series 1
2020 YTDTMNPPVideo1015102319SoftwareXXSoftware52591021040101/11/201901/11/2019FFUSD55001550015500FALSE01.89684E+12NPP VideoISTestimonial VideoChris TopheTRUE550055005500550055005500Testimonial VideoFALSEM1620VideoSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]5000013Video-Flat FeeN.SupportN.SupportPerformance0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPIPrint1016103217CopierA1Copier52651001030115/11/201915/11/2019FFUSD45001450014500FALSE01.90013E+12PI the MagWavemaker GlobalISFull PageChris PilgrimFALSE450045004500450045004500Full PageFALSEM1001PrintSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]78751ROPN.SupportN.SupportPerformance0000FALSESystem.Collections.Generic.List`1[System.String]Fall Advertising
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver SponsorshipChris PilgrimTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver SponsorshipChris TopheTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52671025090108/11/201908/11/2019FFUSD1350011350014500FALSE01.89684E+12PKI DPSISSilver SponsorshipLauren LillyTRUE135001350013500135001350013500Silver SponsorshipTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]1350023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52681025090108/11/201908/11/2019FFUSD10001100011000FALSE01.89684E+12PKI DPSISSponsor Additional Staff BadgeChris PilgrimTRUE100010001000100010001000Sponsor Additional Staff BadgeTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]250023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play GolfChris PilgrimTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play GolfChris TopheTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
2020 YTDPrintPKILive Event1017106975SignificantXXSignificant52721025090108/11/201908/11/2019FFUSD35013501116.67FALSE01.89684E+12PKI DPSISGolf - Play GolfLauren LillyTRUE350350350350350350Golf - Play GolfTRUEF1221SponsorshipsSystem.Collections.Generic.List`1[Elan.Library.Ad.Internet.OrdersByWebsite+TrackingCurrency]35023SponsorshipsN.SupportN.SupportFlexible0000FALSESystem.Collections.Generic.List`1[System.String]
 
Upvote 0
Looks good now. Thank you!!!

How can I pull the code from your post to test it on my end?
 
Upvote 0
Because I don't know your Excel version, I assumed this is XL 2016 or higher and you can use Power Query aka Get&Transform
here is M-code
Code:
// Table1
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Index = Table.AddIndexColumn(Table.Transpose(Table.DemoteHeaders(Source)), "Index", 1, 1),
    Count = Table.AddColumn(Table.TransformColumnTypes(Table.PromoteHeaders(Table.Transpose(Index), [PromoteAllScalars=true]),{{"SalesReps", type text}}), "Count", each List.Count(Text.Split([SalesReps],","))),
    Replace = Table.ReplaceValue(Table.RenameColumns(Table.RemoveColumns(Table.AddColumn(Count, "Division", each [Actual_Amount] / [Count], type number),{"Actual_Amount", "Count"}),{{"Division", "Actual_Amount"}})," "," ",Replacer.ReplaceText,{"SalesReps"}),
    Sort = Table.Sort(Table.TransformColumnTypes(Table.Transpose(Table.DemoteHeaders(Replace)),{{"Column12", Int64.Type}}),{{"Column12", Order.Ascending}}),
    Round2 = Table.TransformColumns(Table.PromoteHeaders(Table.Transpose(Table.RemoveColumns(Sort,{"Column12"})), [PromoteAllScalars=true]),{{"Actual_Amount", each Number.Round(_, 2), type number}}),
    Split = Table.ExpandListColumn(Table.TransformColumns(Round2, {{"SalesReps", Splitter.SplitTextByDelimiter(", ", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "SalesReps"),
    Type = Table.TransformColumnTypes(Split,{{"Start_Date", type date}, {"End_Date", type date}})
in
    Type
and this is NOT vba
 
Upvote 0
1. update your profile about Excel version (Account details)
2. check if your version contain Power Query / Get&Transform
3. did you read last line of the previous post?
 
Upvote 0
I'm on Office 365 for business. I will get my IT guy to add Power Query. Because of security settings it will not allow me to do it.
 
Upvote 0

Forum statistics

Threads
1,215,009
Messages
6,122,674
Members
449,091
Latest member
peppernaut

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