+ Reply to Thread
Results 1 to 7 of 7

Combining cells

Hybrid View

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    California
    MS-Off Ver
    2007
    Posts
    6

    Combining cells

    Hi, I'm new to excel and am having problems figuring this formula out. Ok, so I would like to write a formula that if on sheet2 I have text in one cell, call it A3, on sheet1 it will display the value of the next two cells, B3 & C3, on sheet1 looking like this, B3 / C3. However if there is not a number in C3 I would like to just display the value in B3 on sheet1 without the /. This is what I came up with but it displays the value like this B3/. =IF(ISTEXT('sheet2'!A5),IF('sheet2'!I5>0,'sheet2'!H5&"/"&'sheet2'!I5,""),"").

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Combining cells

    Maybe this.....

    =IF(ISTEXT(Sheet2!A5),IF(Sheet2!I5>0,Sheet2!H5&"/"&Sheet2!I5,Sheet2!H5),"")
    Does this help?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    California
    MS-Off Ver
    2007
    Posts
    6

    Re: Combining cells

    Thanks for the quick response. However this is one version of the formula that I have tried and it continues to give back H5/.

  4. #4
    Registered User
    Join Date
    06-22-2015
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2007
    Posts
    12

    Re: Combining cells

    Hi Lord Ralin,
    You might try this formula: =IF(ISTEXT('sheet2'!A3),IF('sheet2'!B3>0,'sheet2'!B3&IF(C3<>"";"/";"")&'sheet2'!C3,""),"")
    I have translated it from Dutch to English, so I hope I did it right ;-)
    Best regards,
    Maarten

  5. #5
    Registered User
    Join Date
    06-24-2015
    Location
    California
    MS-Off Ver
    2007
    Posts
    6

    Re: Combining cells

    Thanks for the quick response. I tried this formula and I keep getting an error box. I've been playing around with this formula and I haven't been able to get it to work.

  6. #6
    Registered User
    Join Date
    06-24-2015
    Location
    California
    MS-Off Ver
    2007
    Posts
    6

    Re: Combining cells

    Sorry my first response was for sktneer and the second for mjwiegant.

  7. #7
    Registered User
    Join Date
    06-24-2015
    Location
    California
    MS-Off Ver
    2007
    Posts
    6

    Re: Combining cells

    @mjwiegant, Success. I finally got it to work. Thank you so much I was getting a little frustrated.

+ 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. Combining cells loses digits in formatted cells
    By marielouise1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2013, 10:11 AM
  2. [SOLVED] Combining vertical cells into one and between blank rows start combining again?
    By mike_m1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-21-2012, 12:19 PM
  3. combining many cells in one cells keeping character font and hyperlinks of all cells
    By mankind00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 09:41 AM
  4. Replies: 0
    Last Post: 12-27-2011, 01:51 AM
  5. Combining content from cells while excluding hidden cells
    By jsarsfi2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2010, 06:02 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