I need some help

sidinoz

New Member
Joined
Aug 16, 2022
Messages
4
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
A friend at work coded this sheet for me to append each duplicate date time in column B by .001 but the formula repeats at .003 and .010 and at other .0xx as the duplicates increase. The code is the same for each cell in column C but I can figure out why it repeats only at certain numbers. I don't have Excel at home and I can't use message boards at work so Im hopin an image and the code is all you need.
Column A is the original time column B has the code
=IF((IFERROR(MATCH(A3,$A$2:A2,1),0))>=0,A3 + C3*0.00000001, B3)
Column C has the code
=IF(A3=A2,C2+1,1)
 

Attachments

  • Capture.JPG
    Capture.JPG
    78.3 KB · Views: 15

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I suspect you are falling into the excel trap of precision, you are adding a very small number to a number which is about 44 thousand. What I suggest you do is try changing the constant you are multiplying by to a constant a lot larger like this:
Excel Formula:
=IF((IFERROR(MATCH(A3,$A$2:A2,1),0))>=0,A3 + C3*0.000001, B3)
( I have deleted two zeroes from your constant. )
To explain my reasoning for this have look at this article:
Floating-point arithmetic may give inaccurate result in Excel - Office
 
Upvote 0
Solution
Column A is the original time column B has the code
=IF((IFERROR(MATCH(A3,$A$2:A2,1),0))>=0,A3 + C3*0.00000001, B3)
You need to use a more accurate number for the millisecond.
0.000000011574074
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top