Reducing A Date To A Single Number
Mar 30, 2007
I would like to take a date and reduce it to single number. Eg.
Reduce the day to a number. Reduce the month to a number. Reduce the year to a number.
Add the 3 together. This gives you a number.
Reduce this number to a number.
e.g. today's number date 30 / 03 / 2007
Day is 30
Month is 3
Year = 9
Sum of these is 15 which reduces to 6.
3+0+0+3+2+0+0+7=15
1+5=6
Basically 9 is the highest number. The number 13 would be 1+3=4 and so on. The idea is to return a single number between 1-9.
View 14 Replies
ADVERTISEMENT
Sep 3, 2006
i have a simple if statment
If cboname.Value = Sheets("Data Sheet"). Range("E2") Then
txtpay.Value = Sheets("Data Sheet").Range("F2")
End If
this need to be done for a large list of names and input into another sheet. what i wanted to know was if there is a quicker way of doing this code without repeating the code loads of times
View 9 Replies
View Related
Mar 28, 2014
I'm trying to combine the hours that a employee worked on a single date, with one of multiple time periods that exist for that employee.
I have two sets of data.
Set 1 (hours)
Employee number, date, hours
12345, 1-2-2014, 6
12345, 1-3-2014, 8
12345, 1-10-2014, 8
Set 2 (periods)
Employee number, start date, end date
12345, 1-1-2014, 4-1-2014
12345, 6-1-2014, 1-2-2014
What I'd like to do is to add the start and end date of Set 2 to Set 1 for every row in Set 1
In above example the result should be like this.
12345, 1-2-2014, 6, 1-1-2014, 4-1-2014
12345, 1-2-2014, 8, 1-1-2014, 4-1-2014
12345, 1-10-2014, 8, 6-1-2014, 1-2-2014
View 13 Replies
View Related
Dec 20, 2012
i am trying to get back to the original purchase date of an asset.
It has being depreciating using the reducing balance method.
I have the Net book value of the asset currently, the original cost and the depreciation rate.
However i do not know the quickest way in excel to work back to the original purchase date.
See attached file for examples and my long workaround to estimate purchase date.
View 1 Replies
View Related
Oct 11, 2008
I need to create formulas that reference a single date and output date ranges. The objective is to have a person input a Monday date in any given month and receive a four weeks out worth of dates and ranges. For example: In a lone cell, the person inputs 10/13/08. Automatically, the sheet produces the next full week range: October 19 – October 25 in a single cell and also produces a cell for each date. Example: Sunday 19, Monday 20, Tuesday 21, etc…. It should look like:
Monday Date:
10/13/08
October 19 – October 25
Sunday 19
Monday 20
Tuesday 21
Wednesday 22
Thursday 23
Friday 24
Saturday 25
and then repeat for three more weeks. I thought I had it figured out until the month changed. The dates continued in October instead of adding a month. This report will be ran weekly, so simply adding a +1MONTH to some cells will not benefit me as I’ll have to change the formula every week. I want the formula to compute the data without any manipulation over the next several years. The only change will be the Monday date.
View 2 Replies
View Related
Jan 17, 2014
Supposing I have a list where each data set appears multiple times. How do I by formula make a list of the unique values?
I've uploaded to show what I mean.
View 11 Replies
View Related
Sep 19, 2012
I have a spreadsheet which is currently about 10 MB, I would like to reduce this as much as possible.
I am using lots of Vlookups but on each I am only referencing the data I need, there are also quite a few macros.
I paste value all the formula I do not need.
View 5 Replies
View Related
Jul 3, 2006
I don;t know if there is a way around this but we have a Excel workbook that holds around 14 worksheets taht is getting too large. It currently is around 2.5mb and we constantly use it as a template which is completed and emailed. Sometimes we have to email 4 of these all together and so teh email is too large, even zipping them has next to no effect on the size. The sheet that seems to causing the problem is one that has around 500 lines of formula across 20 columns. Most of these fields have conditional formatting and its this taht is boosting the size.
View 6 Replies
View Related
Jan 8, 2012
i want o make some command buttons on a sheet with the width 50 and when you move the mouse over to any one the width of that one should increase to 300. when you move he mouse over to the other one the size of the previous one should return to 50 and the new one (now under the mouse) should be 300.
i have written the code for it how ever it tends to increase the width twice i.e. it will increase the size of the command button, then reduce it to 50 and increase it again. this action makes it look like it flickering
Code below
Code:
Option Explicit
Dim sShapes As Shape
Dim ActShapes As Shape
Dim wsStart As Worksheet, WsNew As Worksheet
Dim wd
Dim mybutton
Dim ShapeChk As Boolean
[Code]....
View 2 Replies
View Related
Jan 16, 2008
I have a piece data acquisition hardware which stores data every 5 minutes into an excel sheet, I need to reduce the resolution of the data to every 30 minutes, currently I am doing this by deleting five rows leaving one and repeating the process, there is however 9285 rows
I am assuming there is a macro which can do this far quicker than me.
View 9 Replies
View Related
Dec 5, 2011
Here's my problem.
Charter default premium is a calculated as a rate on outstanding charter hire.
Therefore if charter period is 1 year and daily hire is 20,000, outstanding charter hire (policy limit) at inception would be 20,000 x 365 = $7,300,000
However, by day 365 outstanding charter hire and prevailing policy limit would only be 20,000 x 1 day = $20,000
The premium is calculated on a daily pro rata basis on the reducing outstanding amounts.
I've calculated the premium on the attached spreadsheet assuming hire is monthly not daily, but it would be too laborious to try and calculate that for 12 months or more on a daily basis. What I'm hoping is that there's a formula, covering the range of data, presumably using the calculation on the first day and the last day, but which cuts out all the intermediate steps.
View 3 Replies
View Related
Sep 17, 2012
I have an issue with a combo box and radio button.
Anytime I click on either of them, they reduce in size.
It's as if it is reducing by the same ratio every time until you can't click on it anymore.
View 3 Replies
View Related
Nov 13, 2006
I can't figure out a solution.
4 columns, thousands of rows.
Column A has alphanumeric data that can appear, once, twice, 3 times or 4, but never more than 4.
I want to see this spreadsheet so that each piece of data in column A is presented only once.
The information in the other 3 columns isn't important for what I want to do, so I need to reduce 20000 + rows, which includes many duplicates in Column A to about 5-60000, but need help figuring the correct formula/macro ....
View 9 Replies
View Related
Jul 25, 2006
I have columns of geological data in number form which may have about 4 or 5 decimal points. I want to reduce them to 2 decimal points without rounding the numbers up. Is there a simple way to do this?
View 4 Replies
View Related
Aug 17, 2011
Is it possible to do a drop down list that allow user to select pre-defined selections but everytime when a selection is chosen, the list reduced?
Example,
I have can choose Apple, Orange, Durian and Mango.
The drop down can only select these 4 fruits.
So there are 4 cells in Column A1, A2, A3, A4.
A1 selects Mango and then A2 will only have 3 options to choose. So until the last cell, he can only choose the last fruit left.
A1, A2, A3, A4 are not selecting in descending order thus it could be A3 selecting first, then A2 and then A4.
I'm using excel 2007
View 13 Replies
View Related
Jun 23, 2014
I am attempting to count up the sum of names that will be submitted, through a web form, in a single cell.
Example:
Cell B1 will have a bunch of names submitted to it. let's say 10: Marino, Elway, Namath, Montana, Manning, Brady, Romo, Bradshaw, Favre, Aikman. (these text strings will be all in one single cell)
I will have a list of names that are correct to compare to: Montana, Brady, Bradshaw, Manning. I can put those in its own cell to compare to. (C1)
How do i get the sum of 4 from B1 cell? If B1 only has 3 of the 10, how would it return the sum of 3?
Example:
A1 B1 (Submitted cell) C1 (List to compare to "right answers") D1 (sum from B1 compared to C1)
user 1 Marino, Elway, Namath, Montana, Manning, Brady, Romo, Bradshaw, Favre, Aikman Montana, Brady, Bradshaw, Manning 4
user 2 Marino, Elway, Namath, Montana, Manning, Brady, Favre, Aikman 3
This is I am sure a very newbie question, but I couldn't find anything on multiple text strings within one cell, and counting a sum of those.
View 14 Replies
View Related
Oct 26, 2012
I have Put 15 Digit Number 234567890123456 in Cell A1. I am trying to get each Digit Seperately into Single Cell from B1 to P1.
View 5 Replies
View Related
Oct 22, 2012
example, in sheet1, B12.
already have workbook already coded. which in sheet1 is just a table to record transaction into other sheets. after clicking "keep" button (this 'keep' button already customized/coded) it will updating the particular chosen sheet.
i would like to make a running number in sheet1, b12, and right after clicking the "keep" button it will generate a new number. example if i want the running number start as 6500, i will become 6501 after click the "keep" button
View 1 Replies
View Related
Mar 16, 2014
I am trying to count the number of commas in each line of my Excel file. So I first decided to count the total number of rows and then count the number of commas in each row. I wrote this code. But I keep getting an error saying Next without for.
Sub Give_The_Last_Row()
Selection.SpecialCells(xlCellTypeLastCell).Select
LastRow = ActiveCell.Row
[Code]....
View 1 Replies
View Related
Oct 17, 2011
I have in my cell a number, namely, 5260007005020024100055040300004110000000
What I would like to do is extract a set of digits from it,
Starting from the second 2, and shown here in the dots. I need all of the numbers in a separate cell, "52600070050200 .24100055.. 040300004110000000"
Hope this is clear. bearing in mind the number will remain as one so I would need to start at 14 then using LEN or something I'm not sure, extract the following 8 into another cell.
View 5 Replies
View Related
Oct 23, 2012
When I enter the function below as a User Defined Function it gives me a "#NAME?" error. I entered in J12 as:
Code:
"=condense(D12,E12,F12,G12,H12)"
I have values for each column is row 12.
Code:
Function condense(ByVal d1, ByVal d2, ByVal d3, ByVal d4, ByVal d5)
condense = d1 & d2 & d3 & d4 & d5
End Function
How do produce a 5 position number from 5 single numbers?
View 1 Replies
View Related
Jan 17, 2014
I had some number combinations as this 5-23-34-233, 50-233-34-45, 34-5-23-45-67. The length can be variable in column A.
I want a formula which should return array of numbers of each cell in column A. So if A1 has 5-23-34-233 so the formula should return array like {5,23,34,233} and like wise.
View 8 Replies
View Related
Aug 21, 2008
Attached is the sample file.
Basically I have a number in column A, just wondering is that any faster to allocate the number into individual cell as shown in the attached file.
View 5 Replies
View Related
Oct 21, 2007
I am trying to find a way to sort a string of numbers within a cell in numerical order as they are entered,regardless in what order they are entered. Example 123,45,478,12 entered cell, and want it to sort in numerical order as it gets entered in the cell...12,45,123,478,4564
View 2 Replies
View Related
Feb 13, 2008
I have a spreadsheet which has a column that contains route numbers (for collection of goods). Some addresses have 2 or 3 route numbers within the same cell i.e.
3
3 20
3 20 15
I would like to know the formula for counting the number of cells that contain each route number i.e. from above 3 = 3, 20 = 2, 15 = 1
View 5 Replies
View Related
Apr 15, 2009
Can I modify this forumla to total for the whole month rather than just a single date:
Here is the formula:
=COUNTIF(INDEX(D:D,10):INDEX(D:D,500),A4)
So if A4 is "01/04/09" I would like to count for the whole of April, not just the 01/04/09.
View 9 Replies
View Related
Apr 9, 2014
i am looking some formula to make sequence number with criteria;
1) if in cell B2 contains only single/one data ----the result is mark "-"
2) if in cell B2 contains several data (not single)----the result is auto numbering with adding mark "." (dot) and start from 1.,2.,3.,4,etc........
for the detail,
condition 1 (multiple data in col.B)
number
name
1.
john
2.
mike
3.
sisca
etc...
condition 2 (single data in col.B)
number
name
View 2 Replies
View Related
Jan 28, 2010
formula that will return the number of "x"s or "o"s within the same cell.
The cell has values that are formatted in multiple ways for example: PXX--XXP, --XO, OXX--.
I want the formula to return 4 if the cells has PXX--XXP or 3 if the cells has --OXX etc.
View 9 Replies
View Related
Jan 3, 2012
I'm looking for a formula that may automatically convert date into single digit e.g today is Jan 03, 2012 & after adding (1+0+3+2+0+1+2) it will come out 9 ....
View 6 Replies
View Related
May 4, 2014
I am looking for a method to conditionally format a variable number of cells below a single cell into which data is entered.
For example ABC = 6, DEF = 12. Therefore, if I enter ABC into D1 then D1:D6 should be conditionally formatted.
View 3 Replies
View Related