result formula cell is doubled in result cell

littlepete

Well-known Member
Joined
Mar 26, 2015
Messages
503
Office Version
  1. 365
Platform
  1. Windows
hello :)

I did and still do learn a lot and I love that !!! I love VBA ...
but because i'm just basic, i often do not understand reasons why something goes wrong...

what I hate, is that something goes right the whole time, and then without having done anything with it,
it changed into an error :

look at the joined picture: column T gives the date of baptizing. column U reforms it to mmdd and adding number 2 (for baptize)
you can see the formula for column U in the top formula bar, and the result in cell U6 ...

why did the result double itself from " 20.05.1961 " to : " 20.05.196120.05.19612 " ? it should be " 05202" !

mysterie...
 

Attachments

  • 2022-03-09.png
    2022-03-09.png
    160.3 KB · Views: 10
thank you for all your replies but they are not funny and really not helping.

this is what i have:

the line to copy data from textBOX to cell in database:
Sheets("gegevens").Range("l" & dezerij).Value = ufpersonenfiche.pftitel.Text

the textbox contains a string. the cell in the database is a date cell " dd.mm.jjjj"

now what happens?
if i execute the above line the result in the cell is NOT a date (forex: "15.02.2000") but two times that value: "15.02.200015.02.2000"
when i change the line to :
cdate(Sheets("gegevens").Range("l" & dezerij).Value = ufpersonenfiche.pftitel.Text)
then i get an error saying the values are not compatible

when i add format to that :
format(cdate(Sheets("gegevens").Range("l" & dezerij).Value = ufpersonenfiche.pftitel.Text))
i get the same error

so my question is: how do i copy the string of a date into a data-formatted cell ???

thank you...
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
thank you for all your replies but they are not funny and really not helping.
Same goes for you, as you still haven’t actually answered my question. Until you do, I can’t help you.
 
Upvote 0
you asked what the problem was and i just answered with all possible details.
so dont bother and leave me alone.
 
Upvote 0

Forum statistics

Threads
1,215,766
Messages
6,126,758
Members
449,336
Latest member
p17tootie

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