SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 28-06-11, 08:41 AM   #1
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default 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
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Old 28-06-11, 10:33 AM   #2
Sir Trev
Member
Mega Poster
 
Sir Trev's Avatar
 
Join Date: Jun 2005
Location: High Wycombe, where the chair factories used to be
Posts: 1,479
Default 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?
__________________
We are the Goon Squad and we're coming to town, BEEP BEEP!
Sir Trev is offline   Reply With Quote
Old 28-06-11, 10:41 AM   #3
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default 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
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Old 28-06-11, 11:03 AM   #4
nukefusion
Guest
 
Posts: n/a
Default Re: Computer bod of the org- I need your help

Quote:
Originally Posted by andrewsmith View Post
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))
  Reply With Quote
Old 28-06-11, 11:26 AM   #5
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default 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
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Old 28-06-11, 11:52 AM   #6
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default 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
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Old 28-06-11, 12:02 PM   #7
nukefusion
Guest
 
Posts: n/a
Default 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)),"")))
  Reply With Quote
Old 28-06-11, 12:22 PM   #8
Viney
Member
Mega Poster
 
Join Date: Jul 2003
Location: In the shadows to the left
Posts: 7,700
Default 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!
Viney is offline   Reply With Quote
Old 28-06-11, 12:38 PM   #9
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default 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
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Old 28-06-11, 12:59 PM   #10
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default 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
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer help please Red Herring Idle Banter 14 15-11-09 06:45 PM
Computer help the_lone_wolf Idle Banter 8 09-06-09 10:25 AM
Computer help please Stu Idle Banter 7 09-11-08 07:28 PM
computer help!! malks Idle Banter 13 21-10-08 08:02 PM
what does your computer do? hovis Idle Banter 38 08-01-07 11:53 PM


All times are GMT. The time now is 03:39 AM.


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