+ Reply to Thread
Results 1 to 8 of 8

how to complete the & formula

  1. #1
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    SOLVED:-how to complete the & formula

    i'm useing the (&) to collect 4 cells together then it give me a name like :
    A1&B1&C1&D1 = NASSER
    BUT sometimes i use A1&B1&C1 to give me khaled

    while A1&B1 ..... SHOULD GIVE ME A UNIQE

    I think the file i attched will show what i mean
    Attached Files Attached Files
    Last edited by nasser; 04-01-2007 at 11:40 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Not sure if this is what your after

    =IF(A4="","",$A$2&" "&A4)&IF(B4="","",$B$2&" "&B4)&IF(C4="","",$C$2&" "&C4)&IF(D4="","",$D$2&" "&D4)&IF(E4="","",$E$2&" "&E4)

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216
    sorry but it's not working , what i have is a IF and Vlookup from the other sheet

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    What are you trying to do. Can you explain in more detail

    VBA Noob

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Prehaps.

    =IF(COUNTA(A4:D4)=0,"",IF(ISERROR(VLOOKUP(A4&B4&C4&D4,Data!$A$2:$G$200,7,FALSE)),VLOOKUP(A4&B4&C4,Data!$A$2:$G$200,7,FALSE),VLOOKUP(A4&B4&C4&D4,Data!$A$2:$G$200,7,FALSE)))

    Do you need to use BR

    VBA Noob

  6. #6
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216
    Quote Originally Posted by VBA Noob
    Prehaps.

    =IF(COUNTA(A4:D4)=0,"",IF(ISERROR(VLOOKUP(A4&B4&C4&D4,Data!$A$2:$G$200,7,FALSE)),VLOOKUP(A4&B4&C4,Data!$A$2:$G$200,7,FALSE),VLOOKUP(A4&B4&C4&D4,Data!$A$2:$G$200,7,FALSE)))

    Do you need to use BR

    VBA Noob
    what i try to do is when i write the numbers in the INSU.sheet in the column
    A1, B1,C1,D1 it give me the reference in the DESCRIPTION , ...but sometimes i have code numbers contains of 3 cells only like
    A1,B1,C1 so since the formula is about A,B,C,D it not read only the 3 cells

    u can try my sheet and it may explan more if u deleted the Number 1 in the comment ceel

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481
    Hi,
    doesn't your formula perform like it should??

    If you delete the 1 it then matches the criteria,
    I don't understand what you are trying to do..

  8. #8
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    Red face

    Quote Originally Posted by davesexcel
    Hi,
    doesn't your formula perform like it should??

    If you delete the 1 it then matches the criteria,
    I don't understand what you are trying to do..
    i'm so sorry i was right a worng number so u and VBA so right it's already correct and don't have to be changed

    I APOLOGISE I WAS SO WRONG

    THANKS FOR UR CONCERN AND THANKS FOR UR TIME

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1