Can someone give some advices???
Id like to know if someone have a code for visual basic/ excel to calculate the exact difference of two numbers in a extremely huge sample, such as.
for example, I'd like to know:
+ Which are, and how many are, pairs of numbers with the precise difference of 19 within each row in the above table.
+ I am using Excel-2010
Is it possible to do it in Visual Basic in MS EXCEL 2010? How can it be done?
I'm looking forward to receiving good news.
Thanks in advance
23 3691
I have no experience working with VB in Excel, but this VB6 code snippet may give you a start.
This assumes the data is in a two-dimensional grid. -
'set numbers here to suit
-
-
dim maxrow as integer 'for rows
-
dim maxcol as integer 'for column
-
-
'example maximum figures
-
maxrow = 100: maxcol = 40
-
-
dim row(maxrow) as integer 'row
-
dim col(maxcol) as integer 'column
-
dim listnumber(maxrow, maxcol) as integer 'data
-
-
dim a as integer
-
dim b as integer
-
dim n as integer
-
-
for a = 1 to maxrow 'work each row
-
for b = 1 to maxcol-1 '
-
n = b
-
While n<= maxcol 'compare each figure in row against all others
-
n = n + 1
-
if abs(listnumber(a,n)-listnumber(a,b))=19 then 'use abs in case of -ve number
-
print "Row: ";a; " Columns:";b; " and ";n
-
endif
-
wend
-
next b
-
next a
yeah u got the idea into mind: exact difference of two numbers or ABS is 19. i saw that u wrote it in the code. I TRIED your code in MS EXCEL 2010, but it returned no results, because it displayed error messages: error compilations in the code.
I got almost-nothing skills in programming, I recently have begun study vba 4/5/6 windowns a month ago.
Would you fix the code up, please?
many thanks
Please use code tags when posting code or formatted data.
Your thread has been moved to the excel forum.
You should be aware that this is not a code writing service. We will help you fix code but most of us do not have the time to write it all for you. We expect you to put forth some effort.
thks for your help.
Would you fix the code up, please?
many thanks in advance
You haven't posted any code
Sandradepar - As stated at the top of my reply, I have no experience of VB in Excel. As far as I'm concerned, I tried to help in writing the formulae to scan the data and output the results to give you a start, but I'm not contracted to you and it's up to you to work out how to reference the data.
Sandradepar,
I don't know if you've got any further, but I felt I might offer you a clue. It isn't difficult stuff.
I don't do Excel VBA, but a 5-minute google will show that you can reference the cells quite easily so that line 22 might read:- -
22. if abs(Worksheets("Sheet1").Cells(a,n) - Worksheets("Sheet1").Cells(a,b))=19 then 'use abs in case of -ve number
zmbd 5,501
Expert Mod 4TB
codegazer,
Thank you for your efforts on this... the ball is in SANDRADEPAR's court to make an effort to apply your solution(s) to the situation and show their effort here for more guidance.
We're not a code writing service.
i tried this code but i got limited results (the code omitting some results i dont know how to fix this: - Sub difference()
-
-
Dim lngLastRow As Long
-
Dim lngLastColumn As Long
-
Dim lngMatch As Long
-
-
Dim arrMatch(100) As Variant
-
Dim arrMatchValues(100) As Variant
-
Dim arrMatchValues2(100) As Variant
-
-
Const valDif = 19
-
-
lngMatch = 0
-
-
Sheets("Plan1").Select
-
-
lngLastRow = Sheets("Plan1").Range("A1").End(xlDown).Row
-
lngLastColumn = Sheets("Plan1").Range("A1").End(xlToRight).Column
-
-
-
For i = 1 To lngLastRow
-
For j = 1 To lngLastColumn
-
If Cells(i, j + 1).Value - Cells(i, j).Value = valDif Then
-
-
arrMatch(lngMatch) = Cells(i, j).Address
-
arrMatchValues(lngMatch) = Cells(i, j + 1).Value
-
arrMatchValues2(lngMatch) = Cells(i, j).Value
-
-
lngMatch = lngMatch + 1
-
-
End If
-
Next j
-
Next i
-
-
Sheets("Plan2").Select
-
-
Cells(1, 1).Value = lngMatch & " records found"
-
-
For i = 0 To lngMatch
-
-
Cells(i + 1, 3).Value = arrMatch(i)
-
Cells(i + 1, 5).Value = arrMatchValues(i)
-
Cells(i + 1, 6).Value = arrMatchValues2(i)
-
-
Next i
-
-
End Sub
-
-
try to aplly it in a small sample : - 54 60 63 66 67 68 72 75 82 84 100
-
50 51 56 58 61 62 67 68 90 92 94
-
44 47 50 54 61 64 80 92 93 95 100
-
53 54 61 64 69 84 92 94 97 98 99
-
53 57 59 78 79 83 85 86 93 96 100
-
52 53 57 58 59 63 68 73 76 77 81
-
53 58 60 69 72 79 85 86 88 91 98
-
48 62 69 74 76 78 80 83 93 97 99
-
50 51 55 57 61 69 71 72 85 89 96
-
38 40 43 59 60 63 64 72 73 85 93
-
40 48 54 56 57 59 67 69 73 86 92
-
39 43 46 55 58 62 74 82 95 97 100
the code is omitting some results in some lines (it displays only 1 pair per line/row, and no more results) i dont know how to fix that.
Also I have absolutely no experience of VB in Excel.
can someone fix the code up, please?
Does anyone have a better practical idea that solve the problem( in the 1st post on top of the page) more easily ??? Any help is so welcome.
many thanks in advance
zmbd 5,501
Expert Mod 4TB
Let us go back to the dataset in your first-post - Just row one....
-
34 46 61 70 73 78 88 89 90 95 100
Option 1:
|A-B|=|C| such that:
|34-46|=|12|; |34-61|=|27|; |34-70|=|27| etc...
|46-61|=|15|; |46-70|=|24|; |46-73|=|27| etc...
and so forth thru all of the possible combinations of those numbers with only the given row,
OR
Option 2:
A-B, B-C, C-D so that:
|34-46|; |46-61|; |61-70|; etc...
IN either option 1 or 2, returning only those numbers where their absolute difference is 19 within the given row.
Which option is correct?
friend, thanks for your help .
yeah that's the main idea : to find the exact difference of two numbers or their absolute value |A-B|=|C| , that should be 19.
the code that i posted previously is omitting some results in some lines (it displays only 1 pair per line/row, and no more results) i dont know how to fix that.
i tried valDif in the code such as A-B, B-C, C-D, but it is omitting some results in some lines (it displays only 1 pair per line/row, and no more results) .
try to aplly it in a small sample :
54 60 63 66 67 68 72 75 82 84 100
50 51 56 58 61 62 67 68 90 92 94
44 47 50 54 61 64 80 92 93 95 100
53 54 61 64 69 84 92 94 97 98 99
53 57 59 78 79 83 85 86 93 96 100
52 53 57 58 59 63 68 73 76 77 81
53 58 60 69 72 79 85 86 88 91 98
48 62 69 74 76 78 80 83 93 97 99
50 51 55 57 61 69 71 72 85 89 96
38 40 43 59 60 63 64 72 73 85 93
40 48 54 56 57 59 67 69 73 86 92
39 43 46 55 58 62 74 82 95 97 100
You'll see that some results are missing
Also I have very small limited knowledge of VB in Excel.
many thanks
To be clear, can you confirm that you are trying to find ANY two numbers in each row that differ by 19?
zmbd 5,501
Expert Mod 4TB
OK, your mixing formulas again....
absolute value |A-B|=|C| , that should be 19.
(...) i tried valDif in the code such as A-B, B-C, C-D, but it is omitting some results in
However, it appears that you are after Option2
So let's look at the logic:
(I so highly advise that you learn how to properly chart your prgrams, I prefer Nassi-Shneiderman Charts (PDF) for most, if not all, my programming logic)
Now what I would do is set your reference so that [R1C1] actually refers to the start of your dataset and then offset from there checking for null/isblank as one went.
so the logic
+ [Start]
+ [find first cell in data set]
+ [set a pointer to that cell]=[R1C1]
+ [x=0]
+ [n=0]
+ <Start loop - Rows in datatable>
++<Start loop calculations>
+++[value of first cell][R1C1]offset(R+x,C+n)=lcell
+++[value of second cell][R1C1]offset(R+x,C+(n+1))=rcell
+++ [compare lcell-rcell = |19| report pair (to?) if true]
+++ [increment your column offset n]
+++ <end loop calculations if either cell offset returns empty cell>
++ [increment your row offset x]
++ [reset the column offset n to 0]
++ <end loop rows if the offset returns empty cell>
+ [end]
See if the logic chart and the afore mentioned logic will get you to the right solution. As a note:
The following is copyright by MS Original Link is here: https://support.microsoft.com/en-us/kb/269866 however support is ended for this link so I copy part of it here for academic reasons: A1 Reference Style vs. R1C1 Reference Style The A1 Reference Style
By default, Excel uses the A1 reference style, which refers to columns as letters (A through IV, for a total of 256 columns), and refers to rows as numbers (1 through 65,536). These letters and numbers are called row and column headings. To refer to a cell, type the column letter followed by the row number. For example, D50 refers to the cell at the intersection of column D and row 50. To refer to a range of cells, type the reference for the cell that is in the upper-left corner of the range, type a colon (:), and then type the reference to the cell that is in the lower-right corner of the range. The R1C1 Reference Style
Excel can also use the R1C1 reference style, in which both the rows and the columns on the worksheet are numbered. The R1C1 reference style is useful if you want to compute row and column positions in macros. In the R1C1 style, Excel indicates the location of a cell with an "R" followed by a row number and a "C" followed by a column number.
many thanks to all,
codegazer i 'm trying to find ALL POSSIBLE SOLUTIONS THAT two numbers in each row differ by 19 or
its absolute value is 19 such as 58 - 39 = 19 or |58 - 39|= 19 or |39 - 58|= 19
the code that i posted above is omitting some results in some lines (it displays only 1 pair per line/row in final results, and no more results, it is excluding some results, and i don't know why) and i dont know how to fix that.
as I have said above i have very small limited knowledge of VB in Excel.
Does anyone have a better pragmatical approach that solve the problem more easily ??? Any help is so welcome.
many thanks in advance
zmbd 5,501
Expert Mod 4TB
SANDRADEPAR:
+ We understand your question.
+ What we are waiting for is for you to tell us what it is that you are after. One time it's one thing, the next it appears you want something else.
+ Using the pseudo-code I gave you in post#14, it took me all of 20 minutes, and most of that was hand-checking against your dataset in the original post, to write the script for comparing the adjacent pairs - something you already have. If this isn't what you're after then you need to tell us what you've tried to do to fix the script
Come on, Sandradepar.
You were very nearly there when you posted your code a week ago, but your code only ever compares adjacent pairs because you use j & j+1.
To find all results in each row, you will have to search from j to the end of the row
zmbd 5,501
Expert Mod 4TB
codegazer, I think that is what SANDRADEPAR is after...
(from the post#12, using the data in post #1)
34-46, 46-61, 61-70, 70-73....
49-51, 51-55, 55-62, 62-63....
Which in this data set (in post#1) only occur 8 times and then only once in the rows where the pairs have a difference of 19 - and they are all negative in nature :)
It may be the case that SANDRADEPAR has one solution to the question at hand; however, SANDRADEPAR needs to clarify the actual goal.
What clouds the issue for me is the rows of numbers at the bottom of the example data in post#1:
16 11 || 88 3 || 2 25 0 || 73 61...
many thanks to all, codegazer and zmbd
What i'm trying to say (the main goal) is that to find ALL POSSIBLE SOLUTIONS THAT any two numbers within each line/row differ by 19 or its absolute value is 19 such as 58 - 39 = 19 or |58 - 39|= 19 or |39 - 58|= 19 for each line/row.
the code that i posted above is omitting some results in some lines ( it displays only 1 pair per line/row in final results, and no more results, it is excluding some results, and i don't know why) and i dont know how to fix that.
See the code: - Sub difference()
-
-
Dim lngLastRow As Long
-
Dim lngLastColumn As Long
-
Dim lngMatch As Long
-
-
Dim arrMatch(100) As Variant
-
Dim arrMatchValues(100) As Variant
-
Dim arrMatchValues2(100) As Variant
-
-
Const valDif = 19
-
-
lngMatch = 0
-
-
Sheets("Plan1").Select
-
-
lngLastRow = Sheets("Plan1").Range("A1").End(xlDown).Row
-
lngLastColumn = Sheets("Plan1").Range("A1").End(xlToRight).Column
-
-
-
For i = 1 To lngLastRow
-
For j = 1 To lngLastColumn
-
If Cells(i, j + 1).Value - Cells(i, j).Value = valDif Then
-
-
arrMatch(lngMatch) = Cells(i, j).Address
-
arrMatchValues(lngMatch) = Cells(i, j + 1).Value
-
arrMatchValues2(lngMatch) = Cells(i, j).Value
-
-
lngMatch = lngMatch + 1
-
-
End If
-
Next j
-
Next i
-
-
Sheets("Plan2").Select
-
-
Cells(1, 1).Value = lngMatch & " records found"
-
-
For i = 0 To lngMatch
-
-
Cells(i + 1, 3).Value = arrMatch(i)
-
Cells(i + 1, 5).Value = arrMatchValues(i)
-
Cells(i + 1, 6).Value = arrMatchValues2(i)
-
-
Next i
-
-
End Sub
-
-
And try to apply it in a small sample : -
54 60 63 66 67 68 72 75 82 84 100
-
50 51 56 58 61 62 67 68 90 92 94
-
44 47 50 54 61 64 80 92 93 95 100
-
53 54 61 64 69 84 92 94 97 98 99
-
53 57 59 78 79 83 85 86 93 96 100
-
52 53 57 58 59 63 68 73 76 77 81
-
53 58 60 69 72 79 85 86 88 91 98
-
48 62 69 74 76 78 80 83 93 97 99
-
50 51 55 57 61 69 71 72 85 89 96
-
38 40 43 59 60 63 64 72 73 85 93
-
40 48 54 56 57 59 67 69 73 86 92
-
39 43 46 55 58 62 74 82 95 97 100
You'll see that some results are missing because as my friend codegazer said: codegazer: " your code only ever compares adjacent pairs because you use j & j+1.
To find all results in each row, you will have to search from j to the end of the row".
The problem with my code is what u said above, but i'm not able to fix that, because I have very small limited knowledge of VB in Excel.
Can help me?
many thanks
You are nearly there.
A couple of adjustments as below should show the results -
For i = 1 To lngLastRow
-
For j = 1 To lngLastColumn-1
-
'extra loop to search to end of row
-
for n= j+1 to lnglastcolumn
-
If abs(Cells(i, n).Value - Cells(i, j).Value) = valDif Then
-
-
arrMatch(lngMatch) = Cells(i, j).Address
-
arrMatchValues(lngMatch) = Cells(i, n).Value
-
arrMatchValues2(lngMatch) = Cells(i, j).Value
-
-
lngMatch = lngMatch + 1
-
-
End If
-
Next n
-
Next j
-
Next i
-
zmbd 5,501
Expert Mod 4TB
Attached is a file with one approach to the solution:
To use:
>always scan files with your antivirus.
Select the upper-right-hand cell of the data-table.
Sheet1!A1
Excel2013>Ribbon>View>Macros>ViewMacros
[LoopAndCompareAdjecentCells]
Does just that, with a row of data compares the adjacent cells
a-b, b-c, c-d, etc...
Repeating for each row
[LoopAndCompareWithinRow]
Does just that, takes each cell in turn and compares with the remaining cells within the row
a-b, a-c, a-d.... b-c, b-d, b-e,.... c-d, c-e, c-f, etc....
Repeating for each row
Following is the source code for module, insert a standard module or copy and paste the following in to the "ThisWorkbook" module of the workbook:
All of the output is being sent to the Immediate pane - open with <ctrl><g>
>> This pane will scroll thru very quickly so not every result will be visible in the pane LINE 27 and LINE 71
Are the comparison lines for the ABS(LCell-RCell)=19
These are one of the lines you will need to modify to store your results where you need them... I did not code this because you didn't indicate what you wanted done with this information.
Personally, I would either open a text file for output and write the results or insert a new worksheet and insert the values there as found. - Option Explicit 'DO NOT DUPLICATE THIS LINE IN YOUR MODULE
-
-
Sub loopandcompareadjecentcells()
-
Dim zDifference As Long
-
Dim zStartCell As Range
-
Dim zLcell As Range
-
Dim zRcell As Range
-
Dim zrowoffset As Long
-
Dim zclmoffset As Long
-
'
-
'using the currently selected cell as the staring point
-
zrowoffset = 0
-
zclmoffset = 0
-
'
-
'set up for the first compair and then enter the loop
-
Set zStartCell = ActiveCell
-
Set zLcell = zStartCell
-
Set zRcell = zLcell.Offset(zrowoffset, (zclmoffset + 1))
-
'
-
'Drop out of the procedure if the first cell is empty other wise continue until the first empty cell is found
-
Do Until IsEmpty(zLcell)
-
'Row loop
-
'Drop out of the loop is the cell is empty else continue until the first empty cell is found
-
Debug.Print "row= " & zLcell.Row
-
'loop until the first empty cell is found
-
Do Until IsEmpty(zLcell) Or IsEmpty(zRcell)
-
If Abs((zLcell.Value - zRcell.Value)) = 19 Then Debug.Print Tab(10); zLcell.Value & "-" & zRcell.Value & "="; (zLcell.Value - zRcell.Value)
-
zclmoffset = zclmoffset + 1
-
Set zLcell = zStartCell.Offset(zrowoffset, zclmoffset)
-
Set zRcell = zStartCell.Offset(zrowoffset, (zclmoffset + 1))
-
Loop
-
zrowoffset = zrowoffset + 1
-
zclmoffset = 0
-
Set zLcell = zStartCell.Offset(zrowoffset, zclmoffset)
-
Set zRcell = zStartCell.Offset(zrowoffset, (zclmoffset + 1))
-
Loop
-
If Not zStartCell Is Nothing Then Set zStartCell = Nothing
-
If Not zLcell Is Nothing Then Set zLcell = Nothing
-
If Not zRcell Is Nothing Then Set zRcell = Nothing
-
Debug.Print "done"
-
End Sub
-
-
Sub loopandcomparewithinrow()
-
Dim zDifference As Long
-
Dim zStartCell As Range
-
Dim zLcell As Range ' cell on the left ( left - right = value )
-
Dim zRcell As Range ' cell on the right ( left - right = value )
-
Dim zrowoffset As Long ' Which row in the data table
-
Dim zleftoffset As Long ' pointer relative to the table start
-
Dim zrightoffset As Long ' pointer relative to the table start
-
'
-
zrowoffset = 0 ' Start in the first row where the currently selected cell is located
-
zleftoffset = 0 ' Using the currently slected cell as the starting point in the row
-
zrightoffset = 1 ' pull the adjcent cell to the starting cell
-
'
-
'set up for the first compair and then enter the loop
-
Set zStartCell = ActiveCell
-
Set zLcell = zStartCell
-
Set zRcell = zLcell.Offset(zrowoffset, (zleftoffset + zrightoffset))
-
'
-
'now if there isn't anything in the first cell then drop out of the procedure otherwise keep going until we have an empty cell
-
Do Until IsEmpty(zLcell)
-
'Row loop
-
Debug.Print "row= " & zLcell.Row
-
'Start left cell loop
-
'once again, drop out if nothing is found in the cell else keep going until the first empty cell
-
Do Until IsEmpty(zLcell)
-
'Start right loop
-
'once again, drop out if nothing is found in the cell else keep going until the first empty cell
-
Do Until IsEmpty(zRcell)
-
If Abs((zLcell.Value - zRcell.Value)) = 19 Then Debug.Print Tab(10); zLcell.Value & "-" & zRcell.Value & "="; (zLcell.Value - zRcell.Value)
-
zrightoffset = zrightoffset + 1
-
Set zRcell = zStartCell.Offset(zrowoffset, (zleftoffset + zrightoffset))
-
Loop 'right cell
-
zleftoffset = zleftoffset + 1
-
zrightoffset = 1
-
Set zLcell = zStartCell.Offset(zrowoffset, zleftoffset)
-
Set zRcell = zStartCell.Offset(zrowoffset, (zleftoffset + zrightoffset))
-
Loop 'left cell
-
zrowoffset = zrowoffset + 1
-
zleftoffset = 0
-
Set zLcell = zStartCell.Offset(zrowoffset, zleftoffset)
-
Set zRcell = zStartCell.Offset(zrowoffset, (zleftoffset + 1))
-
Loop 'row
-
If Not zStartCell Is Nothing Then Set zStartCell = Nothing
-
If Not zLcell Is Nothing Then Set zLcell = Nothing
-
If Not zRcell Is Nothing Then Set zRcell = Nothing
-
Debug.Print "done"
-
End Sub
thank you codegazer ,
i inserted the adjustments that u provided me above into the code: - Sub difference()
-
-
Dim lngLastRow As Long
-
Dim lngLastColumn As Long
-
Dim lngMatch As Long
-
-
Dim arrMatch(100) As Variant
-
Dim arrMatchValues(100) As Variant
-
Dim arrMatchValues2(100) As Variant
-
-
Const valDif = 19
-
-
lngMatch = 0
-
-
Sheets("Sheet1").Select
-
-
lngLastRow = Sheets("Sheet1").Range("A1").End(xlDown).Row
-
lngLastColumn = Sheets("Sheet1").Range("A1").End(xlToRight).Column
-
-
-
For i = 1 To lngLastRow
-
For j = 1 To lngLastColumn - 1
-
'extra loop to search to end of row
-
For n = j + 1 To lngLastColumn
-
If Abs(Cells(i, n).Value - Cells(i, j).Value) = valDif Then
-
-
arrMatch(lngMatch) = Cells(i, j).Address
-
arrMatchValues(lngMatch) = Cells(i, n).Value
-
arrMatchValues2(lngMatch) = Cells(i, j).Value
-
-
lngMatch = lngMatch + 1
-
-
End If
-
Next n
-
Next j
-
Next i
-
-
Sheets("Sheet2").Select
-
-
Cells(1, 1).Value = lngMatch & " records found"
-
-
For i = 0 To lngMatch
-
-
Cells(i + 1, 3).Value = arrMatch(i)
-
Cells(i + 1, 5).Value = arrMatchValues(i)
-
Cells(i + 1, 6).Value = arrMatchValues2(i)
-
-
Next i
-
-
End Sub
-
I tried it several times , but nothing happened.
Can you see if i made the aproppriate adjustments right in the code?
merry christmas
God bless you forever
many thanks for your help zmbd,
i try to execute your 964972.zip file so many times in my EXCEL 2010.But it didn't work.
I run loopandcompareadjecentcells first, and after i run LoopAndCompareWithinRow . Nothing happened.
It didn't write any results.
All the test that i made in EXCEL 2010 were unsuccessfull.
I don't know if the codes of loopandcompareadjecentcells and LoopAndCompareWithinRow are compatible with old EXCEL 2010 ...
( i can't afford for a new whole OFFICE 2015 nowadays, cause i 'm broken)
Happy christmas
God bless you ad aeternum
zmbd 5,501
Expert Mod 4TB
1) Forgive me for the stupid tech-support questions: When you downloaded the file did you unzip it?
2) This code compiles and runs on a 2007, 2010, and 2013 - 32 and 64bit office installs. (Have a friend with 2007, I have a runtime 2010 on the laptop, and bit 32 and 64bit versions of 2013 on the desktop PCs (although the 64bit is going to be reformatted by my IT-staff over the new year)
3) These are not functions
This code is designed to take the activecell and use that as a starting point.
If you unzip the file, open in Excel, select sheet one, cell A1, and run either of the VBA scripts, it will work ( see the instructions)
4) The output is to the Debug window, press <alt><F11> to open the editor, <ctrl><g> to open the immediate pane (IP).
4a) Because the dataset is so large, the output to the IP will scroll off of the top; thus, you will not see all of the results.
4b) To store the results you will need to modify the debug.print lines to store these in the desired location.
5) the actual script is in the post's code block.
-z
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Ilan |
last post by:
Hi all
I need to add data from two Excel sheets (both on the same workbook)
to an existing table in my SQL DB.
The problem is that each sheet holds different fields for the same
record, though...
|
by: Ange T |
last post by:
Hi there,
I'm having pain with the VB behind an Access form. The form is used to
create reports in Excel based on the details entered in the form. This
has always worked without error on my...
|
by: Tony Williams |
last post by:
SORRY I know we shouldn't do this but I'm desperate for an answer to this
and the previous post didn't seem to get a response.
I have a table with two fields, txtvalue (a number field) and...
|
by: venkatesh |
last post by:
hai to everybody,
i am having doubt in difference between the malloc
and calloc function.
please tell where to use and when to use those functions?
|
by: yotamaner |
last post by:
Hi,
I saw that someone asked a similar question before, but it's not what I'm looking for.
I have two date fields (check in, check out) and "number of days" field.
I want the script to calculate...
|
by: kiss07 |
last post by:
Hi friends,
I have one doubt , whts difference between Time and Timestamp data type in
Oracle 9i.
Thanks,
Kiss07.
|
by: slinky |
last post by:
Anyone know how to calculate the difference between two times
displayed in two textboxes?
I'm starting out with two textboxes: "txtCallTimeBegins" &
"txtCallTimeEnds"
this yielded: 6/7/2007...
|
by: RP |
last post by:
I have a date entered in a TextBox. On this TextBox LostFocus, I want
to retrieve the year part and then calculate the difference from
current year.
|
by: prashantkuppa |
last post by:
hi,
iam struggling with difference between two dates of format type dd/mm/yyyy
i need difference between two dates olddate(dd/mm/yyyy) - newdate(dd/mm/yyyy) and this should be in java script...
|
by: jkmyoung |
last post by:
Calculating Large Exponents
Background: This is a quick article as to how to calculate the exponents of large numbers quickly and efficiently.
Starting with a basic multiplication algorithm, it...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |