Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 313
Default Format parts of cell differently

I am using combining two time cells into one cell along with a separator of "
- ".

Source Cell J4 - "11:00 am"
Source Cell K4 - "11:30 am"

Target Cell C4 - "11:00 - 11:30 am"

How do can I do this and get the right formatting? I am currently getting:

0.34375 - 0.688194444444444

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Format parts of cell differently

=text(j4,"hh:mm AM/PM") & " - " & text(k4,"hh:mm AM/PM")

I included the AM/PM in the formatting for the first time.

Tony wrote:

I am using combining two time cells into one cell along with a separator of "
- ".

Source Cell J4 - "11:00 am"
Source Cell K4 - "11:30 am"

Target Cell C4 - "11:00 - 11:30 am"

How do can I do this and get the right formatting? I am currently getting:

0.34375 - 0.688194444444444


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 313
Default Format parts of cell differently

Dave, all I need to do now is apply to the following column/cell reference:

wsPh.Range("c" & EMcnt) =

"Dave Peterson" wrote:

=text(j4,"hh:mm AM/PM") & " - " & text(k4,"hh:mm AM/PM")

I included the AM/PM in the formatting for the first time.

Tony wrote:

I am using combining two time cells into one cell along with a separator of "
- ".

Source Cell J4 - "11:00 am"
Source Cell K4 - "11:30 am"

Target Cell C4 - "11:00 - 11:30 am"

How do can I do this and get the right formatting? I am currently getting:

0.34375 - 0.688194444444444


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Format parts of cell differently

Does that mean you want to put the formula in that cell?

wsPh.Range("c" & EMcnt).Formula _
= "=text(j" & EMcnt & ",""hh:mm AM/PM"") & "" - """ _
& "&text(k" & EMcnt & ",""hh:mm AM/PM"")"



Tony wrote:

Dave, all I need to do now is apply to the following column/cell reference:

wsPh.Range("c" & EMcnt) =

"Dave Peterson" wrote:

=text(j4,"hh:mm AM/PM") & " - " & text(k4,"hh:mm AM/PM")

I included the AM/PM in the formatting for the first time.

Tony wrote:

I am using combining two time cells into one cell along with a separator of "
- ".

Source Cell J4 - "11:00 am"
Source Cell K4 - "11:30 am"

Target Cell C4 - "11:00 - 11:30 am"

How do can I do this and get the right formatting? I am currently getting:

0.34375 - 0.688194444444444


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 313
Default Format parts of cell differently

Thanks Dave, works like a charm.

"Dave Peterson" wrote:

Does that mean you want to put the formula in that cell?

wsPh.Range("c" & EMcnt).Formula _
= "=text(j" & EMcnt & ",""hh:mm AM/PM"") & "" - """ _
& "&text(k" & EMcnt & ",""hh:mm AM/PM"")"



Tony wrote:

Dave, all I need to do now is apply to the following column/cell reference:

wsPh.Range("c" & EMcnt) =

"Dave Peterson" wrote:

=text(j4,"hh:mm AM/PM") & " - " & text(k4,"hh:mm AM/PM")

I included the AM/PM in the formatting for the first time.

Tony wrote:

I am using combining two time cells into one cell along with a separator of "
- ".

Source Cell J4 - "11:00 am"
Source Cell K4 - "11:30 am"

Target Cell C4 - "11:00 - 11:30 am"

How do can I do this and get the right formatting? I am currently getting:

0.34375 - 0.688194444444444

--

Dave Peterson


--

Dave Peterson

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
Number Format Displays Differently Between Users JDRaven Excel Discussion (Misc queries) 0 May 8th 08 05:01 PM
Date glitch? First 12 days of month format differently than the r yakalo Excel Discussion (Misc queries) 3 April 9th 07 01:18 AM
How do you format each slice differently in a 3-D pie chart? Old School Charts and Charting in Excel 1 March 27th 06 01:31 AM
open Excel formatted differently than the default format Chip Excel Discussion (Misc queries) 1 November 20th 05 10:38 PM
Number format exactly the same, displays differently in some cells eider Excel Discussion (Misc queries) 1 July 29th 05 12:26 AM


All times are GMT +1. The time now is 02:32 PM.

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"