SV650.org - SV650 & Gladius 650 Forum

SV650.org - SV650 & Gladius 650 Forum (http://forums.sv650.org/index.php)
-   Idle Banter (http://forums.sv650.org/forumdisplay.php?f=116)
-   -   Computer bod of the org- I need your help (http://forums.sv650.org/showthread.php?t=168153)

andrewsmith 28-06-11 08:41 AM

Computer bod of the org- I need your help
 
As the title says am bit stumped on how to do a excel formula (its about 5 years since I did them properly).

I'm needing it to be a idiot proof process (Ideally automagic) for a automatic ID generator.

It needs to add an ID no (in this case: "Building Name: xxx") when the name boxes are filled (or Surname).
I would do it in access but the company doesn't use it outside of HR and finance.


Many thanks in advance.
Andy

Sir Trev 28-06-11 10:33 AM

Re: Computer bod of the org- I need your help
 
Sounds like you need a simple "add together" formula. If it's a combination of text and name say (where the name is entered in another cell) and the text is constant use

=concatenate("text: ",b2)

If cell b2 has the word flange in it the result would be

text: flange

If the text is variable then slimply link two or more fields in exactly the same way, such as

=concatenate(c1,d1,e1)

That way you can set up a table and join two or more fields to get a single ID/reference if that's what you need.


Does that help?

andrewsmith 28-06-11 10:41 AM

Re: Computer bod of the org- I need your help
 
Yep it does Trev, makes sense of the one I got to work earlier

Is there a way to set it up so the ID code isn't present in every cell when its exported?
As the database its for will pick up 100,000 entries instead of the 500 needed

nukefusion 28-06-11 11:03 AM

Re: Computer bod of the org- I need your help
 
Quote:

Originally Posted by andrewsmith (Post 2564658)
Yep it does Trev, makes sense of the one I got to work earlier

Is there a way to set it up so the ID code isn't present in every cell when its exported?
As the database its for will pick up 100,000 entries instead of the 500 needed

I'm a bit rusty with Excel, but you'd probably want to only generate the ID if there was an entry in the name box. Something along the lines of:

=IF(ISBLANK(B1), "", CONCATENATE("text: ", B1))

andrewsmith 28-06-11 11:26 AM

Re: Computer bod of the org- I need your help
 
Well its 80% there, just need to get false to show as blank
Cheers lads so far

andrewsmith 28-06-11 11:52 AM

Re: Computer bod of the org- I need your help
 
Righto
Just need to get the ISBLANK TO WORK

This is where I am at:
=IF(ISTEST(A2,(CONCANTENATE("MAINGATE",LEFT("00000 0",6-LEN(ROW(A2)-1)),ROW(A2)-1) [It works perfectly to this point] ,(ISBLANK(A2),(CONCATENATE("",LEFT(ROW(A2)-1)))) This is where its gone pete tong and not working

nukefusion 28-06-11 12:02 PM

Re: Computer bod of the org- I need your help
 
A bit of a guess because I can't see the overall picture but it looks like you need an additional IF clause on the last part where the ISBLANK condition is (the bit that's gone pete tong). Maybe something like this?

=IF(ISTEXT(A2,CONCANTENATE("MAINGATE",LEFT("000000 ",6-LEN(ROW(A2)-1)),ROW(A2)-1),IF(ISBLANK(A2),CONCATENATE("",LEFT(ROW(A2)-1)),"")))

Viney 28-06-11 12:22 PM

Re: Computer bod of the org- I need your help
 
And theres me having probalme getting vlookup to work...which i did in the end!

andrewsmith 28-06-11 12:38 PM

Re: Computer bod of the org- I need your help
 
makes VLookup look easy
Daft thing is I had to design a POS system using excel as part of an AS level, and that had about 90 pages of formula and script to it

andrewsmith 28-06-11 12:59 PM

Re: Computer bod of the org- I need your help
 
Update time.

I've got the if false to work displaying "TRUE" so I'm somewhere

=IF(ISTEST(A2,(CONCANTENATE("MAINGATE",LEFT("00000 0",6-LEN(ROW(A2)-1)),ROW(A2)-1),(OR(A2="")))

Just need to work out the show blank after this point :smt017


All times are GMT. The time now is 10:53 AM.

Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.