Sumproduct Too Slow, Delete Seconds From Every Cell
Jun 10, 2008
I have 2 problems:
1) I am doing multiple sumproducts on 6 sheets within a workbook with last row now being in the 12,000 cell range. Since putting in this SumProduct, my excel is extremley slow and affecting other windows applications. Is there anything I can use to replace this sum product ?
=SUMPRODUCT(--(TEXT($B$4:$B$9003,"mmddyyhh")=TEXT(P2273,"mmddyyhh")),$D$4:$D$9003)
It seems to be starting the calculations even before I put any values in column D ? I have already tried the manual calculation, but it is not making much of a difference.
2) After doing the sumproduct, I then need another row to look at the value of the sumproduct cell and report it in another sheet. My problem is that the cell contains the date and time in 1 cell, but in order to get the cell to lookup the value properly I need to delete the 00 in the seconds to refresh the cell or else it gives me back an n/a# value, even though the seconds are 00 and not 01 or 02 etc ?
example : ....
View 9 Replies
ADVERTISEMENT
Jan 5, 2007
I made one excel file with 9 sheet. there are used sumproduct formula in 200 rows.
i am not used any vba macro for this file.
i am used sumproduct formula link to other files and other sheets.
my file size is 1.80 mb but when i am enter new data in file then file going in process of calculation and calculate all forumula it take some time. my file options calculation is automatic but for calculation it take time and i have to wait for that for Process.
There are any macro for calculation so my file work fast and don't want to wait for calulation process .
This file is not open like other files. it is take a time in update the link or calculation.
View 9 Replies
View Related
Aug 9, 2006
I was wondering if is possible to replace SUMPRODUCT with code. Right now I have formulas like these throughout my sheet and I think they are causing it to be slow:
=SUMPRODUCT(--($B$4:$B$1002<=B4),--($M$4:$M$1002="PROD"),--($O$4:$O$1002="O"))
I also have the following code in my worksheet. I don't know if anything here is causing it to take so long to "calculate cells." Also my code just stopped coloring the row ranges and I not sure what cause it to stop working.
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "O:O"
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
'Begin coloring row ranges based on these requirements
If .Row > 3 Then
If Me.Cells(.Row, "O").Value = "" Or Me.Cells(.Row, "O").Value = "O" Or Me.Cells(.Row, "O").Value = "H" Then
Me.Cells(.Row, "A").Resize(, 26).Interior.ColorIndex = 0
End If.................
View 6 Replies
View Related
Aug 23, 2007
I have the following formula in 220 cells in a workbook:
=( SUMPRODUCT(('General Journal'!$C$1:$C$44995>=$D$3)*('General Journal'!$C$1:$C$44995<=$E$3)*('General Journal'!$H$1:$H$44995=$A5),'General Journal'!$I$1:$I$44995))+(SUMPRODUCT(('General Journal'!$C$1:$C$44995>=$D$3)*('General Journal'!$C$1:$C$44995<=$E$3)*('General Journal'!$J$1:$J$44995=$A5),'General Journal'!$K$1:$K$44995))+(SUMPRODUCT(('General Journal'!$C$1:$C$44995>=$D$3)*('General Journal'!$C$1:$C$44995<=$E$3)*('General Journal'!$L$1:$L$44995=$A5),'General Journal'!$M$1:$M$44995))
Where D3 is a starting date, E3 is a closing date, and A5 is a sorting code. It looks at my general journal and looks for all the entries between the two dates, and then sums up all the entries linked to the sorting code in A5. The sorting code is in column H, and the amount to sum is in column I, and this is repeated 3 times.
You are already probably signering at how long I must have to wait while excel calculates all these formulas (* 220). I have resorted to a macro that turns caluculation to manual when I open this workbook, and back to auto when it closes.
View 8 Replies
View Related
Jan 29, 2010
I'm using Excel 2003. The sumif function will not allow me to ignore hidden rows in my data set that have been autofiltered. I tried using the following formula and it worked:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(CopiedB!$I$2:$I$65000,ROW(CopiedB!$I$2:$I$65000)-ROW(CopiedB!$I$2),0,1)),--(CopiedB!$A$2:$A$65000=$A22),CopiedB!$I$2:$I$65000)
The problem I am having is that the sumproduct and offset funtions used to ignore hidden rows are considered "volatile" and force a recalculation. Moreover, I have this fomula pasted 100+ times and this dramatically slows things down even when I turn autocalculate off. Is there another way to accomplish a sumif with a user defined custom function in VB? I really need to have the ability to do a sumif that ignores hidden rows and is not dramatically slow.
View 9 Replies
View Related
Jan 18, 2010
I want to change 1 minute 24 seconds and 5 tenths into a seconds number. So basically it would come out as 84.50 seconds.
View 4 Replies
View Related
Mar 9, 2009
I have got the macro below, my problem is that when you run it, it takes 20 seconds or so. In my other larger spreadsheet it was almost instant.
View 4 Replies
View Related
Sep 23, 2007
How can I Convert Decimal Minutes & Seconds To Total Seconds?
Here is the sample
View 4 Replies
View Related
Jun 28, 2008
I trying to figure a formula to convert time on a phone call eg. 01:01:21 into total seconds (3661). Phonecalls will never be more than an hour long but the spreadsheet I will be supplied with (havn't got it yet!) will display them in the 00:00:00 format.
View 5 Replies
View Related
Jun 18, 2008
Is there an easy way of converting seconds from using a time into hours, minutes, seconds
View 9 Replies
View Related
Jun 21, 2009
How would I go about converting - for example:
0:22 (formated general) to a number = 22
or
1:30 (formated general) to a number = 90
View 9 Replies
View Related
Jul 13, 2006
I am trying to convert a number of "hours" "minutes" and "seconds", to give me a result in seconds only, in order that I may then financially cost the amount of time spent on a task. (A time and motion costing exercise)
Example:
1119:48:06
Represents 1119hours:48minutes:36seconds spent on a task.
I can manually convert this to 4031286 seconds, but it just takes too much time !!!(sorry!)
The data is extracted from a database which is unable to split the hours,minutes,seconds into seperate fields, which prevents me from using three cells in excel.
View 9 Replies
View Related
Dec 7, 2007
I have a spreadsheet that imports data relating to phone call durations. The information imports as a total number of seconds taken.
What I need to do is to change that number of seconds into hours, minutes and seconds.
Changing the format of the cells doesn't work.
I've tried everything I can think of, and run out of ideas.
example:
23 needs changing to 00:00:23
96 needs changing to 00:01:36
268 to 00:04:28
9374 to 02:35:14
View 7 Replies
View Related
Jan 29, 2013
I have been trying for the last two weeks to convert a list of seconds into minutes and seconds, but just can not do it?
Below is an example of my raw data, that I need to convert into minutes and seconds:
120000
120000
120000
2880000
480000
[code].....
View 5 Replies
View Related
Aug 24, 2009
I have a relatively complex application with a few thousand cell links and dozens of VBA macros (3.5 MB heavy). This application (one file for each project) is used by a few hundred users in about 200 projects.
What I did recently (to allow updating macro program functionality in existing files) is to move all macros into an add-in.
What happens now is every time when I change the content of any cell anywhere in the file, it takes about 3 seconds(!) to leave the cell after changing it and to jump into the one below.
Of course I'm getting complaints from users about this slow behaviour.
This also applies to cells in sheets that have no event macro program related to them.
It applies as well to cells that are not referenced in any other cell.
I tried changing the calculation method from automatic to manual - no change in speed.
I de-activated the add-in - no change in speed.
I have checked if there are any formulas that contain the today() or function or the like - there are none (actually, I had replaced them with links to a cell that contains today's date, which is automatically updated when the file is opened, but this was also this way in the previous version).
It seems that there is something going on that causes Excel to be busy with itself.
Does anyone know what might cause this strange behaviour?
I tried everything I could think of without success and I'm lost now.
We are using Excel 2003 in an XP Professional SP2 environment and most of our computers have 512 MB RAM.
View 14 Replies
View Related
Jan 30, 2009
how can i record a cell's value on a different tab every x seconds?
the value is updated every y seconds and i would like a list in column A of the cell's changing values.
every refresh may produce the same value.
View 9 Replies
View Related
Jan 13, 2008
1. Create a worksheet for each set of tables (Sheet1: 2x table, Sheet2: 3x table etc)
2. In field A3 (e.g.), I'd type (Formatted as text): 2x1=
3. In field B3, he'd have to type the answer. To prevent him from using the cell as a calculating tool, it will be formatted as text (courtesy of Prevent Someone From Entering A Formula In A Cell)
4. He'll start the test by clicking a button that says "START THE TEST" (or something more exciting, like "Earn some money!"). I'd like a macro to select the first cell (This I can do, believe it or not! :-)) and then, after, say 5 seconds, jump to the second cell, then the third etc up to the last cell (2x13=)
5. Despite the timer, the active cell must be allowed to be changed to the following one (one down) by pressing "Enter" (In other words, if the timer is set at 5 seconds and Jonathan enters the answer in 1, he may then press enter and move to the following cell immediately)
5. He can only enter the answer in the cell while highlighted and I'll have the whole sheet protected once the macro has done its run to the end or once he's answered the final question and pressed "Enter".
View 3 Replies
View Related
Aug 6, 2008
is there away to format a cell to do minutes and seconds? then get an overall sum?
View 9 Replies
View Related
Apr 23, 2006
I currently have a lot of times saved in an excel file that are in seconds for example 245.9 seconds. Need formula where i could have in the next cell to it where it would say 4 minutes 5.9 seconds.
View 2 Replies
View Related
Feb 4, 2013
I need to have a ticking clock by seconds in cell A1 on Sheet1.
This cannot have the current date associated with it. It needs to only show the time because I am using specific times in A4:A200 for employee report times, and in column B an IF statement
=IF(F4="x","Checked In",IF(A4>$A$1,"Early","Late"))
that show if an employee check in late. Column F will be used by our supervisor and they will simply mark an 'x' when the employee reports in for their shift.
I would like this macro to start automatically when a user opens the workbook, and stop when they close it.
View 1 Replies
View Related
Dec 10, 2009
I have written some very basic code to format a report in excel. When I run the code it take a very long time to execute and I receive the following error message at the foot of the page:
Cell (press esc to cancel)
Annoyingly I have had this error before and found the solution on the web but can't remember where. If memory serves my right I deleted some temp files from a specific location on my hard drive?
View 3 Replies
View Related
Feb 11, 2009
I have a VBA program which is running very slowly on one of my computers, but none of the others.
Here's a piece of code which illustrates the problem, which is that assigning a null string to a cell is very slow.
Option Explicit
Public Sub test()
Dim objSh As Worksheet
Dim I As Integer
Set objSh = Worksheets("Sheet1")
MsgBox "test1"
For I = 1 To 1000
objSh.Cells(1, 1) = ""
Next
MsgBox "test2"
For I = 1 To 1000
objSh.Cells(1, 1) = " "
Next
MsgBox "done"
End Sub
If I change this to assign a space instead it is very fast (about 1,000 times faster).
This slow machine is not normally slow; an ACER Aspire 9410Z with 2GB RAM, running Vista Ultimate.
Other machines run this code OK on a mix of Windows XP, 2000 and Vista Business. with Excel 2003, 2000 and 2007.
Ultimate seems to be the only unique factor of the machine where it runs slowly.
View 9 Replies
View Related
Apr 1, 2009
I have the foollowing equation in a cell:
=NETWORKDAYS(A2,A12)+G12
My answer is 1081:23:42.
Is there a way to have it show the number of days, hours, minutes and seconds? So it will say 45:1:23:42? (45 days, 1 hour, etc...) Or something along these lines?
View 9 Replies
View Related
Apr 2, 2009
How do i change the formula, =SUMPRODUCT(c14:au14,c15:au15) to include more columns added to row 14 and 15 in future.
Since the column count will increase , the sumproduct has to be like
=SUMPRODUCT(c14:"last cell in 14th row", c15:"last cell in 15th row")
View 9 Replies
View Related
Mar 26, 2014
I have this formula -
=SUMPRODUCT(('[Australia Load Tracker - March 2014 - V2.xlsm]QA'!$E:$E=B4)*('[Australia Load Tracker - March 2014 - V2.xlsm]QA'!$D:$D=$A$2))
Which works perfectly if A2 has the cell value 24/03/2014 however, if i put in $A$2 this value
="02"&"/"&$XFC$1&"/"&"14", where XFC$1 equals =IF(XFD1>9,XFD1,"0"&XFD1) and XFD1 = =MONTH(TODAY())
Which in basic term gives the month value "03"
The cell shows the value 24/03/2014 however does not work with the sumproduct.. is there anyway to get sumproduct to read this cell value as 24/03/2014 as the whole point is so every month I don't have to update anything and it will constantly update...
The only alternative i can think of is quickly making a VBA script to hardcode the cell values for the dates and change the month value for the middle of the cells every month.
View 3 Replies
View Related
Mar 23, 2012
I have formula but would like to change the ="03-01-2011" to reference what is in a cell =a2, etc.
=SUMPRODUCT(--(LEFT($B$2:$B$3582,10)="03-01-2011"))
View 8 Replies
View Related
Aug 14, 2007
I am trying to use the sumproduct function with ranges defined in my VBA code. I can’t seem to get it to work.
I have two spreadsheets in the enclosed work book – T1, T2
T2 has four columns with the first three columns are text and the fourth column is an integer. The rows in this sheet may be repeated.
T1 has four columns similar to the first three columns in T2. However, the rows are unique. I am trying to do a sumproduct for obtaining the counts on the fourth column in sheet T1
To obtain the values for the fourth column (for each row) in T1 I do the following ...
View 4 Replies
View Related
Jun 4, 2014
I am trying to use SUMPRODUCT on one of my excel files. the condition is that it will try to count all those cells that contain certain letters. i tried using this formula, =SUMPRODUCT(--('All Computers'!$A$2:$A$100000="USA*"),--('All Computers'!$E$2:$E$100000="June")), but I am getting a 0 value.
View 3 Replies
View Related
Apr 12, 2006
SUMIF allows one to enter a [valid] criteria text string into cell D2, say
">14000", and then reference D2 as the function criteria, e.g.,
=SUMIF(B5:B10,D2,C5:C10).
Is there a syntax that SUMPRODUCT will accept that does the same thing? Note the inclusion of a comparison operator is important.
View 9 Replies
View Related
Jun 18, 2009
I have the following line of code in the code for a textbox in a userform:
View 4 Replies
View Related