# Convert Human-readable Text Strings Into Consistent Number Of Weeks From Today Date?

Dec 17, 2011

Is it possible to do the following with a formula in Excel...

I have a list of users with the dates they first logged into a system and the date they last logged in. I'm trying to group them together into segments so I can analyse them using a Pivot table and chart to see how often different groups are using the system, e.g. New customers in December, November, October, etc.

The trouble I am having is trying to convert the different human-readable text strings into a consistent number of weeks from today's date, e.g.

USER FIRST LOGGED IN LAST LOGGED IN
user 1 2 years 20 weeks 54 sec ago
user 2 44 min 7 sec 1 min 37 sec ago
user 3 49 weeks 2 days 17 min 3 sec ago
user 4 5 weeks 2 days 33 min 32 sec ago
user 5 38 min 9 sec 38 min 9 sec ago
user 6 5 weeks 3 days 1 hour 7 min ago
user 7 2 hours 17 min 2 hours 11 min ago
user 8 45 seconds ago 45 seconds ago

Is there a formula I can use to convert these human readble text strings into a number of weeks elapsed since today's date?

## Convert Text Strings To A Code Or Number

Mar 22, 2006

In column A and B I have text representing an Entity and its Intercompany,
respectively. In column C I have concatenated the two. So now in Column C,
for example, I have "BillTom" in row 1 and "TomBill" in row 900.

I need Excel to convert the text into some sort of code, ASCII or number
that shows they are EQUAL. I need something that shows "TomBill" and
"BillTom" are the same thing, just in a different order.

I cannot build an IF formula or use Find/Replace, as I will have thousands
of these types of combinations.

## Userform Validation If Date Is Within 2 Weeks Of Today Date

Mar 19, 2014

I am setting up some validation on my userform. In this case if a user enters a date within two weeks of todays date they will not be able to proceed onto the next page.

Example: Todays date is 19/03/14. If a user enters 25/03/14 into 'TxtDate' they will not be able to proceed.

[Code] ......

## Convert Date To Text Day Number?

Sep 17, 2006

Wondering if there is a simple and concise way to convert a date into text that represents the day number?

So a cell containing “17/09/2006” simply reads as “Seventeenth”, 18/09/2006 becomes “Eighteenth” and so on...

## How To Convert Date To Qtr , With Refer To Today Qtr As 1

Feb 19, 2008

I have a date filed at col " E " , and on Col " AT " i wish to convert date to Qtr number. For example .

Now is Feb 2008, from jan till mar 2008 = Qtr = 1
and OCt - Dev 2007 = Qtr = 2.

So the current Qtr = 1 and last Qtr = 2 and carry on for the rest.

DOD_1  EAT1inv_dateCurr_Qtr212/22/2000 35/24/1999 45/22/1999 55/22/1999 65/22/1999 75/22/1999 85/22/1999 95/22/1999  Excel tables to the web >> Excel Jeanie HTML 4

## Calculate End Date From Start Date & Number Of Weeks

Jun 26, 2007

Take a look at the attachment file. Those highlighted in yellow are entered by the user. What is the formula to calculate the End date in (A6) after the user has entered the start date (A2) & the number of weeks (A4)?

Aug 19, 2007

I want to add a numeric number eg: 4 to a date format eg: 15/08/2007 so that it calculates 4 WEEKS from 15/08/2007 and returns the CORRECT date in a date fomat itself. How do i do this through a VB code ?

## Excel 2003 :: Convert Specific Date Text To Number?

Jun 20, 2014

I want to use a formula, in another cell, to convert ā€ˇ"Friday, ā€ˇ30 ā€ˇMay ā€ˇ2014, ā€¸ā€ˇ3:47:16 PM" to a value. I am using Excel 2003.

## List Of Weeks From Start Date And Input Number

Apr 16, 2014

I am trying to create a simple set up where the operator can enter a starting date and the number of weeks they want this event to occur. This then produces a column of dates from the starting date to the end date for the number of week entered.

E.g. - start date = 16/04/2014 - No. of Weeks = 3

The output would be as below

16/04/2014
23/04/2014
30/04/2014

## Date Countdown: Results Of The Number Of Days Between Today And A Future Date

Apr 8, 2009

I am trying to get the results of the number of days between today and a future date. I am using ="cell containing futuredate"-today() and it gets me the correct number of days. The problem comes in when I have yet to populate the future dates. I am getting -39991 (numeric value between today and jan 01 01) and because I am also using conditional formatting this is even more of a problem. Is there a way get excel to display nothing if it is a negative number? or to give a specified resut if the number becomes negative such as Expired or something of that nature?

## Calculate The Number Of Days From A Date Entered Into Cell A1 To Today's Date

May 19, 2009

I need a formula that will calculate the number of days from a date entered into cell A1 to today's date. Whether it's before or after todays date. Example:

5/10/2009 to today is -9

5/22/2009 to today is 3

## Show Week Number Of Today Date From Starting Date

Jun 27, 2014

is it possible to display the week number of todays date (today()) from a physically entered start date (which would obviously be week one), the start date would be november 4th 2013.

## Prefill Text Box In Userform With Today Date But Allow User To Enter Unique Date

May 29, 2014

I have a workbook that I'm using to tracking staffing patterns within a mental health agency. When the workbook opens the user is asked to pick a date range and an office location. I've placed code into the userform that pre-fills the "start date" with today's date and the "end date" 7 days from today's date. I would like the user to be able to enter a unique date range should they wish but I have yet to figure out the coding to accomplish my goal.

[Code] .....

Attached File : Staffing Report 1.90.xlsmā€ˇ

## Today Date After Checked Box And Increase Number

Jun 9, 2014

I have set the check boxes for each line. I would like to have the today date to appear after clicking the check box on the next right cell. Do I have to use IF for this one?

ALSO I want the number to count up after click the check box. For example:

Name:
Bob (assigned)- 5
(completed)- 4

Every number of completed line increases every time each box is clicked. How can I do that?

## Calculate Number Of Days Between A Date And Today

May 18, 2006

I need to calculate on a spreadsheet the number of days between a specific date and the date the spread sheet is opened. I need to know the number of days a merchandise has been stored.

## Calculate Number Of Days Between Invoice And Today Date

Feb 21, 2014

I'm trying to create a new column which calculates the number of days from the today's date to the due date of an invoice. Also a Column that an invoice is/was overdue.

Column A - Clerk inputs date that invoice was received
Column B - Clerk inputs the date that the bill was paid
Column C - Auto populates the due date of the invoice (20 days after the invoice is received)
Column D - I want a number of days to auto populate based on today's date that will show how many days we have to pay the bill. Example: today is 2/19/2014, bill is due 2/22/2014 (Column C), column D should read 3 (I would prefer is the number is black for "we have days left to pay", red for "we're behind")
*Extra bonus for Column D, if the column goes blank after a date is entered into Column B* - but not necessary

Column E - I would like if the date the bill was paid (Column B) is greater than the date the invoice is due (Column C) to show "Overdue" in the cell.

## Isolating Text And Number Strings

Nov 14, 2013

I have an address column in which multiple strings of text and numbers have been combined. I need to isolate each string and place it into its own column.

Column looks like this....

615 NE CORDER AVE, LEES SUMMIT, MO 64063

2661 NW LEES SUMMIT RD, LEES SUMMIT, MO 64064

104 SE 4TH ST, LEES SUMMIT, MO 64063

4944 SW GULL POINT DR, LEES SUMMIT, MO 64082

3904 SW PRYOR RD, LEES SUMMIT, MO 64082

329 NW BRADFORD ST, LEES SUMMIT, MO 64064

They need too look something like this...
No.
Suffix
Street
Type
City
State
Zip

615 NE Corder Ave Lees Summit MO 64083

The problem I'm having when trying to use a "left" or "right" formulas is some of the strings have different positions in the whole string itself (does that make sense?) (some addresses have 4 characters, some have 3, so on....)

## Count All Cells Containing Certain Text Value By Row Date Relative To Today?

Mar 11, 2014

I want to use a sheet for planning work tasks. I need to count how many cells containing 'x' text exist in rows starting with dates greater than or less than 'Today'

If you look at my workbook (attached) I have dates and tasks on 'sheet1' I have stats on 'sheet2' In the 'spent' on sheet2 I have a COUNTIFS to count the cells containing 'Fish' but I also want to narrow it down further so that I see the nuber of cells containing 'fish' where the date in the A column for that row is less than 'Today'

## Change Colour Of Comment Text With VBA If Its Today Date

May 7, 2013

I have a number of comment (all column D) that have lots of data in each one.

The data will appear like this (each new entry (new entry denoted by a date))

01-May 12:58:05 Liam
02-May 16:18:27 Josh
07-May 11:51:26 Bob
02-May 01:13:34 Terry

What i want to know is, can i change the colour of the text in the comment, if its todays date. So in this case 07-May 11:51:26 Bob goes red (its the 7th here for me).

## Keep Rows Number In Table Consistent

Jan 4, 2007

I have 3 columns of data "Store", "Week" and "Cust" and use the code below to ensure that it was always 150 consecutive rows long regardless of whether any data is in the row.

This is fine if I just have one week to sort, but I find I now have 52 weeks of data and each week could have a different number of stores. I just need the macro below to run each time a new week starts. I can easily put a space (or something else) at the start of each new week so that a " loop" can check for it.

For i = 1 To 150
If ActiveSheet. Cells(i, 1).Value <> i Then
ActiveSheet.Rows(i).Insert
End If
Next

## Extracting Date From Text Strings Of Different Length

May 9, 2008

Am trying to devise a formula that will allow me to extract a date (not stored in date format or recognizable by excel as such: "DEC1/09") and then manipulate it so that excel can recognize it and change it to a "1-Jan-01" form. Problem for me is that functions such as LEFT MID and RIGHT are very specific and sensitive obviously to any additional characters. some of my dates are preceded by "CAN BND 4.25/09"; "CANB BND 4.25/09"; "BC BND 4.25/09" and so on, you get the idea im sure that they are of differing lengths. The dates are equally strewn around as some (these are bond maturities) are 1st of the month while others may hold dates in the middle-end...15th, 30th, 31st etc.

is there a formula that will recognize the dates in the text strings regardless of string length and then a subsequent formula to manipulate the date to proper format?

i.e. "CAN BND 4.25/09 DEC1/09" and "CANB BND 4.25/07 JUN15/07"

Converted into: "01-Dec-09" and "15-Jun-07"

Not that the other parts of the string don't matter, already have macro that can recognize and rip bond coupons.

## Count Strings/Text Within Date Range

May 2, 2008

I am very comfortable with VBA but I usually avoid using formulas if at all possible (unfortunately, I have, formulas are unavoidable (by request).. so formulas it is)

I will try to explain

Column A is a list of dates (ever expanding)
Column B is a list of names ( multiple entries of various names but aligned with various dates)
Column H is a list of names (each possible name which can appear in column B, no duplicates)

Cell I1 = A Date
Cell J1 = A Date
(forming a date range)

Basically what I need to do is:

= COUNTIF(B:B,H2) - but only count it if it is withing the date range (>=I1 & <=J1)

I have tried wrapping it in an IF statement but I can't seem to get it to work.

## Counting The Number Of Unique Text Strings In A Column

Oct 3, 2007

I have a list of around 50000 names. I need to count how many are unique.

## Count Number Of Occurrences Of Multiple Strings In Two Text Files

Jun 11, 2014

In Column A I have the list of strings that I need to search. I want to count the number of occurrences of these strings inside these two text files: Sample1.txt and Sample2.txt. For example I have the string "DOG". I want to search and count the number of times this string appeared in Sample1.txt, and Sample2.txt

See below:

## Formula To Convert Months Into Weeks

Aug 13, 2008

I'm having an issue converting months into weeks. My example is I have people who must provide leaving notice (could be months or weeks). For instance column B details months, and column C details weeks. I'd like to convert months (column B) into weeks in column D, but am not sure of the components of such a formula so I won't list or guess as I'm just not sure.

## Format Row Cell Color Based On Number Of Text Strings In A Column

Jul 29, 2013

I have been trying to format the rows on this sheet to color scale red based on the number of repeat text strings in Column E. Referring to the attached example sheet, '321/312.2/321.3' appears the most times and the goal is to color code the rows it appears in the deepest shade of red, then the next highest occurring string would shade the rows it appears in a lighter shade, etc, in descending order. Our team currently does this across multiple sheets manually everyday and it would be a real time saver if we could get excel to do this automatically.

## Counting Number Of Times TA Shows Within Strings Of Text In A Range Within Sheet?

Dec 7, 2011

How would I go about counting the number of times TA shows within strings of text in a range within a sheet. Example: TA,MH in cell A2, CB,TA in cell C40, ES,TA in cell Q19. Result would be 3. Ideally, I'd like the formula to reference a cell that has TA as the look up data such as in A1 I'd have TA.

## Excel 2010 :: Convert Text To Number And Format Number Without 2 Decimal Places?

Oct 23, 2011

I have a problem that when I try to convert text to number and format the number without 2 decimal places as seen on the link I have given below, Instead of 1607.947, I get 1607947. I have Excel 2010 loaded. The details are in below picture.

[URL]

## How To Convert Date Serial Number To Regular Date

Dec 21, 2013

I was just wondering what is the formula to convert a date serial number back to an actual date?

## Convert Number Representing Date To Real Date

Oct 4, 2007

I have an 8 character number that I am trying to segment and change into a date.

The current format is: YYYYMMDD, for example 20071003 (today's date)

I am would like to change it to read 10/03/2007 or another easily identifiable date format.