Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2015, 11:03 AM
bfisher bfisher is offline Spreadsheet with "CR" & "DB" in amount & number columns. Windows 8 Spreadsheet with "CR" & "DB" in amount & number columns. Office 2013
Novice
Spreadsheet with "CR" & "DB" in amount & number columns.
 
Join Date: Sep 2015
Posts: 3
bfisher is on a distinguished road
Unhappy Spreadsheet with "CR" & "DB" in amount & number columns.

Original Nbr Desired Original Amount Desired Two decimal Place Number Result Two decimal Place Amount Result 9,825.00 DB 9,825.00



0.00 CR $0.00 9,830.00 CR (9,830.00)

4.12 CR ($4.12) 9,793.60 CR (9,793.60)

0.00 CR $0.00 9,898.00 DB 9,898.00

84.25 DB $84.25 9,897.46 CR (9,897.46)

0.00 CR $0.00 9,921.70 CR (9,921.70)

0.00 CR $0.00 9,925.30 DB 9,925.30

12.65 DB $12.65 10,008.00 DB 10,008.00

79.18 DB $79.18 18,786.60 DB 18,786.00

0.00 CR $0.00
18,999.54


$171.96

Sorry, Copy & Paste do not show up well here. Attached file will show problem better.

I have a spreadsheet with two columns. In column A are numbers with two decimals, column E contains amounts with two decimals.
My problem is the "CR" or "DB" with an unprintable character preceeding them.
I need to remove the text characters "CR" or "DB" and remove all spaces and unprintable characters.
I need to be able to add both resulting columns and get the results shown in cells B12 & F12 respectively.
I have tried experminting with TRIM, CLEAN & SUBSTITUTITE without less than needed results.

Sample CR_DB.xlsx
Reply With Quote
  #2  
Old 09-27-2015, 06:17 PM
NoSparks NoSparks is offline Spreadsheet with "CR" & "DB" in amount & number columns. Windows 7 64bit Spreadsheet with "CR" & "DB" in amount & number columns. Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Try this in B3 and drag down

=IF(ISERROR(FIND("CR",A3)),SUBSTITUTE(SUBSTITUTE(A 3,"DB",""),CHAR(160),"")*1,SUBSTITUTE(SUBSTITUTE(A 3,"CR",""),CHAR(160),"")*-1)
Reply With Quote
  #3  
Old 09-28-2015, 06:17 AM
bfisher bfisher is offline Spreadsheet with "CR" & "DB" in amount & number columns. Windows 8 Spreadsheet with "CR" & "DB" in amount & number columns. Office 2013
Novice
Spreadsheet with "CR" & "DB" in amount & number columns.
 
Join Date: Sep 2015
Posts: 3
bfisher is on a distinguished road
Default Many Thanks!

Thank you. Nice solution. I've applied it and works great.
Appreciate your help.
I especially like the use of the ISERROR function.
Reply With Quote
  #4  
Old 09-28-2015, 06:20 AM
bfisher bfisher is offline Spreadsheet with "CR" & "DB" in amount & number columns. Windows 8 Spreadsheet with "CR" & "DB" in amount & number columns. Office 2013
Novice
Spreadsheet with "CR" & "DB" in amount & number columns.
 
Join Date: Sep 2015
Posts: 3
bfisher is on a distinguished road
Default

Many thanks for the 3 solutions. Each work well. How can I mark this as "Solved"?
Reply With Quote
  #5  
Old 09-28-2015, 07:03 AM
NoSparks NoSparks is offline Spreadsheet with "CR" & "DB" in amount & number columns. Windows 7 64bit Spreadsheet with "CR" & "DB" in amount & number columns. Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Near the top of page, it's under Thread Tools.
Reply With Quote
Reply

Tags
&nbsp, cr, db



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas jocke321 Word VBA 2 12-10-2014 11:27 AM
'Linking' entered information to other "cells" from an original "cell" in MS Word Wade Word 6 09-03-2012 05:22 PM
Spreadsheet with "CR" & "DB" in amount & number columns. Mailing: how to make the "page number" in Word is the same as "row number" in excel w Jamal NUMAN Word 1 09-03-2011 11:37 AM
Spreadsheet with "CR" & "DB" in amount & number columns. How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
"Microsoft Excel Application" missing in the "Component Services" on win08 sword.fish Excel 0 02-26-2010 02:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft