Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 13th, 2007, 04:21 PM
Authorized User
Join Date: Jul 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data Format Issue---need help please

Here is my problem. So any feedback from you will be a greatly appreciated.
My data is like example below.

Account Debit credit
1222 12.00
1556 345.52
6689 45.63 45.63
5589 25.56
So the final data I like to see is as follows

I am using formula to put those data into another worksheet.(concatenate function)
I am using pipe as a delimiters to separate the data.

My issue is when no data on debit column I want to use |(pipe) on beginning and end of data like |345.52|
I am also using `1222` in all account column(` ` because text)

And when both column has data then I want to use pipe only end of the data like 45.63| 45.63|
So the final data I like to see is as follows

`1222`| 12.00|
`1556`| |345.52|
`6689`|45.63 |45.63|
`5589`|25.56 |

If there is blank no data then just nothing empty space "".
Thanks for your time.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation and format zone Excel VBA 2 August 7th, 2007 02:53 PM
Sql Insert -- date format issue feets Access VBA 2 June 12th, 2007 12:11 PM
how to format data on dataset bishnupokhrel ASP.NET 2.0 Professional 0 March 21st, 2007 03:23 AM
V V V Urgent::Crystal report format issue narayanark2003 Crystal Reports 0 July 6th, 2006 07:58 AM
Need to format data in xslt emils XSLT 1 November 3rd, 2005 02:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.