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).![]() |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Mega Poster
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
|
![]()
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 |
![]() |
![]() |
![]() |
#2 |
Member
Mega Poster
Join Date: Jun 2005
Location: High Wycombe, where the chair factories used to be
Posts: 1,479
|
![]()
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! |
![]() |
![]() |
![]() |
#3 |
Member
Mega Poster
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
|
![]()
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 |
![]() |
![]() |
![]() |
#4 | |
Guest
Posts: n/a
|
![]() Quote:
=IF(ISBLANK(B1), "", CONCATENATE("text: ", B1)) |
|
![]() |
![]() |
#5 |
Member
Mega Poster
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
|
![]()
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 |
![]() |
![]() |
![]() |
#6 |
Member
Mega Poster
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
|
![]()
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 |
![]() |
![]() |
![]() |
#7 |
Guest
Posts: n/a
|
![]()
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)),""))) |
![]() |
![]() |
#8 |
Member
Mega Poster
Join Date: Jul 2003
Location: In the shadows to the left
Posts: 7,700
|
![]()
And theres me having probalme getting vlookup to work...which i did in the end!
|
![]() |
![]() |
![]() |
#9 |
Member
Mega Poster
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
|
![]()
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 |
![]() |
![]() |
![]() |
#10 |
Member
Mega Poster
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
|
![]()
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 |
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |