LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Spilt data into two columns

Function GetOt(rng As Variant, Noh As Variant, Amount As Variant) As Variant
If rng Like "HRS" Then
GetOt = (Noh) & "-" & (Amount)
Else
GetOt = ""
End If
End Function

The result is:
DESC NOD/NOH AMOUNT RESULT
DYS 31.00 550.00
HRS 60.00 150.75 60-150.75
DYS 10.00 460.30
DYS 10.00 115.10
DYS 31.00 450.00
HRS 60.00 123.00 60-123
DYS 31.00 450.00
HRS 80.00 164.00 80-164
HRS 9.00 22.14 9-22.14
DYS 31.00 950.00
HRS 105.00 455.44 105-455.44
HRS 23.00 119.72 23-119.72
DYS 31.00 1,000.00
HRS 89.00 406.06 89-406.06
HRS 23.00 125.92 23-125.92
This the is the result of my macro, but instead to segregate my result by(
Data -text to column,) I want spilt this result into two columns directly by
macro. Please I f any one can help.
Thanks

 
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
Sorting Data into columns without replacing the columns with data Sandaime New Users to Excel 2 October 18th 07 01:35 PM
Help in code Steve G wrote to move data from 4 columns to 21 columns Steve G Excel Programming 9 August 2nd 07 02:43 PM
Spilt Entire Name into Two columns Jeff Farrar Excel Discussion (Misc queries) 4 July 11th 07 08:02 PM
Spilt value and currency AJ Excel Discussion (Misc queries) 2 May 16th 06 10:09 AM
Date spilt into four cells hyyfte[_25_] Excel Programming 1 October 1st 04 07:15 PM


All times are GMT +1. The time now is 07:50 AM.

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

About Us

"It's about Microsoft Excel"