Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 304
Default Spacing with formulas

Hello all,
I have the following data. I need to get the first set of data, then the 2nd
set and then 3rd. The problem is that the data will not be consistent, as you
can see below. Now, the data is gather with a formula, (1st formula)
=OFFSET(A1, MATCH("Line#Number AmountReason For Difference",A:A, FALSE), 0,
1,1), (2nd formula) =LEFT(B158,1), then (3rd formula, final)
=IF(C158="1",B158,""). I know that you can use €śtext to column€ť and have it
put in the cell next to the original data, but is there a formula that I can
use? I would like to avoid using a VB code for this (my user are not to
savvy).

1 4210210 134.40
2 30362920 395.40
3 820401-2 116.20
4 728435514 152.06
5 820401-1 194.57
6 820501-1 365.90
7 42111438 158.50

End results is such:
1. 4210210 $134.40
2. 30362920 $395.40
3. 820401-2 $116.20
4. 728435514 $152.06
5. 820401-1 $194.57
6. 820501-1 $365.90
7. 42111438 $158.50

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 304
Default Spacing with formulas

Ok, so I found this two fomulas but have a problem with it.
=RIGHT(B158,(FIND(" ",B158)+5))

=LEFT(RIGHT(B158,LEN(B158)-FIND(" ",B158)),LEN(RIGHT(B158,LEN(B158)-FIND("
",B158)))-6)

How can I have the last number be dynamic and not static?

"pgarcia" wrote:

Hello all,
I have the following data. I need to get the first set of data, then the 2nd
set and then 3rd. The problem is that the data will not be consistent, as you
can see below. Now, the data is gather with a formula, (1st formula)
=OFFSET(A1, MATCH("Line#Number AmountReason For Difference",A:A, FALSE), 0,
1,1), (2nd formula) =LEFT(B158,1), then (3rd formula, final)
=IF(C158="1",B158,""). I know that you can use €śtext to column€ť and have it
put in the cell next to the original data, but is there a formula that I can
use? I would like to avoid using a VB code for this (my user are not to
savvy).

1 4210210 134.40
2 30362920 395.40
3 820401-2 116.20
4 728435514 152.06
5 820401-1 194.57
6 820501-1 365.90
7 42111438 158.50

End results is such:
1. 4210210 $134.40
2. 30362920 $395.40
3. 820401-2 $116.20
4. 728435514 $152.06
5. 820401-1 $194.57
6. 820501-1 $365.90
7. 42111438 $158.50

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default Spacing with formulas

Replace:
=RIGHT(B158,(FIND(" ",B158)+5))
With:
=Value(Mid(B158,(FIND(" ",B158)),256))

Replace:
=LEFT(RIGHT(B158,LEN(B158)-FIND(" ",B158)),LEN(RIGHT(B158,LEN(B158)-FIND("
",B158)))-6)
With:
=LEFT(B158,FIND(" ",B158)-1)

"pgarcia" wrote:

Ok, so I found this two fomulas but have a problem with it.
=RIGHT(B158,(FIND(" ",B158)+5))

=LEFT(RIGHT(B158,LEN(B158)-FIND(" ",B158)),LEN(RIGHT(B158,LEN(B158)-FIND("
",B158)))-6)

How can I have the last number be dynamic and not static?

"pgarcia" wrote:

Hello all,
I have the following data. I need to get the first set of data, then the 2nd
set and then 3rd. The problem is that the data will not be consistent, as you
can see below. Now, the data is gather with a formula, (1st formula)
=OFFSET(A1, MATCH("Line#Number AmountReason For Difference",A:A, FALSE), 0,
1,1), (2nd formula) =LEFT(B158,1), then (3rd formula, final)
=IF(C158="1",B158,""). I know that you can use €śtext to column€ť and have it
put in the cell next to the original data, but is there a formula that I can
use? I would like to avoid using a VB code for this (my user are not to
savvy).

1 4210210 134.40
2 30362920 395.40
3 820401-2 116.20
4 728435514 152.06
5 820401-1 194.57
6 820501-1 365.90
7 42111438 158.50

End results is such:
1. 4210210 $134.40
2. 30362920 $395.40
3. 820401-2 $116.20
4. 728435514 $152.06
5. 820401-1 $194.57
6. 820501-1 $365.90
7. 42111438 $158.50

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting formulas to pull data from a specific character spacing... trice_nb Excel Worksheet Functions 2 October 15th 07 05:37 PM
Spacing problems Heine Excel Worksheet Functions 7 March 6th 07 04:13 PM
Double spacing axissm Excel Discussion (Misc queries) 2 February 20th 06 12:45 AM
Common spacing RAJEEV CHADHA Excel Worksheet Functions 0 April 26th 05 01:29 PM
SPACING RAJEEV CHADHA Excel Worksheet Functions 5 April 18th 05 02:11 PM


All times are GMT +1. The time now is 09:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"