Text to columns - changing data strings

tthompson1987

New Member
Joined
Apr 18, 2018
Messages
3
I'm trying to break a credit card statement from PDF to excel so the data can be useful. However the character strings are constantly changing based on vendor, location and the value of the transaction. Below is a sub-set sample of data. Date is easy to extract - LEFT(A1,5). But how do I consistently get the value of transaction when some are $2.95 (4 characters) and others are $5831.50 (7 characters). The vendor/city/state can be left crammed together, but it would be preferred to separate them as well. If I just use a simple "text to columns" function, I don't get the transaction value aligned in the same column. Thanks for your help!!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Sample of data:

[TABLE="width: 500"]
<tbody>[TR]
[TD="width: 67"]12/07 & APL* ITUNES.COM/BILL 866-712-7753 CA .99
[/TD]
[/TR]
[TR]
[TD]12/09 & SPROUTS FARMERS MAR COSTA MESA CA 57.54[/TD]
[/TR]
[TR]
[TD]12/11 & USC STUDENT FIN SRVCS (3) 213-7404017 CA 5,831.50[/TD]
[/TR]
[TR]
[TD]12/10 & ROSS STORES #309 COSTA MESA CA 19.37[/TD]
[/TR]
[TR]
[TD]12/11 & HAND AND STONE MASSAGE AN 949-645-4823 CA 59.95[/TD]
[/TR]
[TR]
[TD]12/22 AMAZON MKTPLACE PMTS AMZN.COM/BILL WA 15.99[/TD]
[/TR]
[TR]
[TD]12/22 TANDOORI FRESH COSTA MESA CA 13.46[/TD]
[/TR]
[TR]
[TD]12/21 CHRONIC TACOS - NEWPOR NEWPORT BEACH CA 9.97[/TD]
[/TR]
[TR]
[TD]12/23 UBER *TRIP OVL5Y 800-592-8996 CA 9.83
[/TD]
[/TR]
[TR]
[TD]12/22 AMAZON MKTPLACE PMTS AMZN.COM/BILL WA 47.57[/TD]
[/TR]
[TR]
[TD]12/23 DEL TACO #13 BARSTOW CA 5.80[/TD]
[/TR]
[TR]
[TD]12/23 SKINNY FATS - SUMMERLIN LAS VEGAS NV 29.07[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi,

This will extract the transaction amounts if it's Always at the end of the string:


Excel 2010
AB
112/07 & APL* ITUNES.COM/BILL 866-712-7753 CA .990.99
212/09 & SPROUTS FARMERS MAR COSTA MESA CA 57.5457.54
312/11 & USC STUDENT FIN SRVCS (3) 213-7404017 CA 5,831.505831.5
412/10 & ROSS STORES #309 COSTA MESA CA 19.3719.37
512/11 & HAND AND STONE MASSAGE AN 949-645-4823 CA 59.9559.95
612/22 AMAZON MKTPLACE PMTS AMZN.COM/BILL WA 15.9915.99
712/22 TANDOORI FRESH COSTA MESA CA 13.4613.46
812/21 CHRONIC TACOS - NEWPOR NEWPORT BEACH CA 9.979.97
912/23 UBER *TRIP OVL5Y 800-592-8996 CA 9.839.83
1012/22 AMAZON MKTPLACE PMTS AMZN.COM/BILL WA 47.5747.57
1112/23 DEL TACO #13 BARSTOW CA 5.805.8
1212/23 SKINNY FATS - SUMMERLIN LAS VEGAS NV 29.0729.07
Sheet14
Cell Formulas
RangeFormula
B1=RIGHT(SUBSTITUTE(A1," ",REPT(" ",30)),15)+0


Formula copied down.
 
Last edited:
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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