+ Reply to Thread
Results 1 to 7 of 7

Formula with text help

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    Stoke on Trent, England
    MS-Off Ver
    2010
    Posts
    58

    Formula with text help

    Hi all.

    Could anyone please help me with a formula containing text.

    Cell A1 contains the item number, Cell B2 contains a description of the item, Cell C2 contains the location of the item.


    It would read something like, 1 CAR RADIO: SHOWROOM 1 LOCATION - D25
    2 SPEAKER SET: SHOWROOM 1 LOCATION - D26

    The formula below works, apart from when I copy down the worksheet. If there are no more items, the cell would just say "SHOWROOM 1 LOCATION"

    =B2&" : SHOWROOM 1 LOCATION - "&C2

    Do you know how to copy down and leave the cell blank if there are no items in that Cell.

    I hope this is not too confusing.

    Thanks for any help

    Graham

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula with text help

    Maybe this:


    =IF(C2="",B2,B2&" : SHOWROOM 1 LOCATION - "&C2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-04-2015
    Location
    Stoke on Trent, England
    MS-Off Ver
    2010
    Posts
    58

    Re: Formula with text help

    Hi
    Thanks for you reply. I tried it but the blank cell returns a 0. It does not stay blank

    Thanks

    Graham

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula with text help

    If I understand correctly you want the formula to yield a blank cell if there is no part description, which means that there would not be a location either. If that is correct try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If my understanding isn't correct, it would be helpful to post an example of the conditions that should cause the formula to yield a blank cell.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    08-04-2015
    Location
    Stoke on Trent, England
    MS-Off Ver
    2010
    Posts
    58

    Re: Formula with text help

    Thank you very much for this. It is perfect.

    Regards,

    Graham

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula with text help

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula with text help

    You're Welcome and thank you for the feedback. I hope that you have a blessed day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 03-04-2014, 01:47 PM
  2. [SOLVED] Find & Replace Formula for Locating Short Text within Larger Text
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2014, 05:04 PM
  3. [SOLVED] Find & Replace Formula for Locating Short Text within Larger Text
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2014, 08:47 PM
  4. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  5. [SOLVED] Extract text from a string of text (amend formula to include new criteria)
    By robertguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2013, 04:53 PM
  6. Replies: 6
    Last Post: 06-08-2012, 06:54 PM
  7. Replies: 0
    Last Post: 06-03-2010, 01:11 PM

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