Custom Excel function

Talk about NBA Live 2005 here.

Custom Excel function

Postby Hrvoje19 on Sat Jul 11, 2009 3:52 am

Does anyone know how to make an excel function which changes all numbers in one column so that number xxyyxxxx becomes number xx(yy-5)xxxx ??? thanks!

(it is for making everyone 5 years older ;) )
User avatar
Hrvoje19
 
Posts: 44
Joined: Tue Jan 13, 2009 10:48 pm

Re: Custom Excel function

Postby JaoSming on Sat Jul 11, 2009 4:01 am

um, -50000, lol
you just need to subtract it like that
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: Custom Excel function

Postby Hrvoje19 on Sat Jul 11, 2009 4:46 am

I figured it out!

lets say in 'A' column are original birthdates from players.dbf

so the function is:

=LEFT(A1;2)&MID(A1;3;2)-5&RIGHT(A1;4)

etc. one player has value 19750508, with function you get him 5 years older - 19700508
User avatar
Hrvoje19
 
Posts: 44
Joined: Tue Jan 13, 2009 10:48 pm

Re: Custom Excel function

Postby JaoSming on Sat Jul 11, 2009 5:06 am

...or you could have just done =A1-50000

Code: Select all
19750508
  -50000
19700508



but whatever works for you, at least it works
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: Custom Excel function

Postby Hrvoje19 on Sat Jul 11, 2009 5:28 am

JaoSming wrote:...or you could have just done =A1-50000

Code: Select all
19750508
  -50000
19700508



but whatever works for you, at least it works


lol, I thought you were just joking!

anyway, thanks. but I'm not certain how to paste that into function and apply to the whole column in excel
User avatar
Hrvoje19
 
Posts: 44
Joined: Tue Jan 13, 2009 10:48 pm

Re: Custom Excel function

Postby JaoSming on Sat Jul 11, 2009 5:51 am

well what I do is copy out the entire column to a new spreadsheet

paste it in then a few cells away, in the same row though, type = then click the top birthdate then add the -50000

once that is in, select the cell with the updated birthdate, youll see a little black square in the bottom right of the cell

click, hold, and drag that down till you edit all of the values

then copy it back into the dbf
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: Custom Excel function

Postby Hrvoje19 on Sat Jul 11, 2009 5:52 am

Now, I have cells with functions, how can I copy values to a different file?? Because when i go 'copy' and 'paste' it copies functions instead values!

EDIT: paste special - values does the trick :)
User avatar
Hrvoje19
 
Posts: 44
Joined: Tue Jan 13, 2009 10:48 pm


Return to NBA Live 2005

Who is online

Users browsing this forum: No registered users and 4 guests