LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Member
 
Posts: 84
Default Add text to meet criteria

Hey all,

How can I AUTOMATICALLY add a text string to a existing string when the existing string is not constant? I'm thinking maybe an IF function with a CONCATENATE function? I need all strings to equal this format - 0d 00h 00m. The challenge is when copied from other files it is not constant, ex.:

E4: 2h 39m
E6: 56m
E8: 12h 08m
E10: 5m

I need all of the above to read like this:

E4: 0d 02h 39m
E6: 0d 00h 56m
E8: 0d 12h 08m
E10: 0d 00h 05m

I need the formula to read the string in the cell(s) and add whatever string is necessary to meet the desired result of 0d 00h 00m (as described above). If the cell is already reading 0d 00h 00m then no action is required. I've tried other ideas and have had other posts with a different approach but none seem to work. I'm thinking this might be an easier problem to solve. After my text reads like above I use the RIGHT & LEFT functions to extract the digits so I have just the days, hours, minutes remaining so I can then add them to NOW() to know when our deadlines are due.

Thanks in advance for your help,

Keyrookie
 
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
add numbers if they meet criteria...? Dan B Excel Worksheet Functions 2 January 31st 07 11:47 PM
How to calculate how many meet min and max criteria Tuukka Excel Worksheet Functions 1 January 8th 07 09:10 AM
how to sum a repeated val only once and meet a certian criteria? DaGersh Excel Worksheet Functions 1 July 22nd 06 02:14 AM
Can I sum #s in a cell if other cells meet a certain criteria? jacchops Excel Discussion (Misc queries) 2 June 16th 06 09:42 PM
how do I count the numbers of row that meet 2 criteria Debi Excel Worksheet Functions 4 November 10th 05 09:56 PM


All times are GMT +1. The time now is 09:11 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"