+ Reply to Thread
Results 1 to 5 of 5

concatenation issue with missing values

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    concatenation issue with missing values

    Hi,
    Need some help with a concatenation formula.

    I have 2 columns: Unit Number (column B) and Street Number (Column C). I need to join these 2 columns but often there is no Unit Number. I've been trying to adjust the formula mentioned in another post but I cant seem to get it to work. I have 29555 rows so dont want to do it manually. I will need a / between the Unit Number and Street number e.g. 7/123

    I've tried =IF((B3=""),B3&"/"&C3,B3&"/"&C3), but when the Unit Number is empty it returns the /Street Number e.g. /16

    Many thanks,
    Adrian

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: concatenation issue with missing values

    Try =IF((B3=""),C3,B3&"/"&C3)

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: concatenation issue with missing values

    hi Adrian, try:
    =SUBSTITUTE(IF(B3<>"","/"&B3,"")&IF(C3<>"","/"&C3,""),"/","",1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: concatenation issue with missing values

    Quote Originally Posted by alansidman View Post
    Try =IF((B3=""),C3,B3&"/"&C3)

    Alan

    Many thanks for the very simple solution! Knew it would be something simple I'd overlooked.

    Cheers,
    Adrian

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: concatenation issue with missing values

    or another way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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