+ Reply to Thread
Results 1 to 8 of 8

How to bring text to cell from column

  1. #1
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    How to bring text to cell from column

    I want to solve such problem, maybe somebody will help:
    Column B consists of many rows. In one of these rows may apear a text (may be different: A; B; C...etc.), while the rest rows remain blank. In cell A1 I want to show (bring) that text, that will apear somewhere in B column. Ho to program this?
    Last edited by NBVC; 07-04-2010 at 10:28 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to bring text to cell from column

    So only 1 row in column B will have text?

    If so, then

    =LOOKUP(REPT("z",255),B:B) if it is text you want to bring back

    =LOOKUP(9.99999E+307,B:B) if it is number

    If you get error message, try replacing the commas (,) in the formulas with semi-colons (
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: How to bring text to cell from column

    Quote Originally Posted by NBVC View Post
    So only 1 row in column B will have text?

    If so, then

    =LOOKUP(REPT("z",255),B:B) if it is text you want to bring back

    =LOOKUP(9.99999E+307,B:B) if it is number

    If you get error message, try replacing the commas (,) in the formulas with semi-colons (
    Yes, only 1 row in column B.
    Hmm... it doesn't work in my case. I don't know why. I have atached a simple file with that problem. Maybe you can view at it.
    Attached Files Attached Files
    Last edited by rcurious; 07-03-2010 at 02:35 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to bring text to cell from column

    Please attach your file directly... We don't want to find your workbooks in 3rd party locations...use the paperclip icon in the Reply box and browse for your file.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to bring text to cell from column

    It is because you have formulas in other cells returning blanks...

    Try:

    =LOOKUP(2,1/(B:B<>""),B:B)

    or

    =LOOKUP(2,1/(B1:B24<>""),B:B)

    with range adjusted to suit.

  6. #6
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: How to bring text to cell from column

    Quote Originally Posted by NBVC View Post
    It is because you have formulas in other cells returning blanks...

    Try:

    =LOOKUP(2,1/(B:B<>""),B:B)

    or

    =LOOKUP(2,1/(B1:B24<>""),B:B)

    with range adjusted to suit.
    Yes, I didn't mention, that blank cells hold formulas.
    Now it looks through blank cells with formulas, but another problem appeared. Sometimes all rows with formulas in column B will be blank, so I want, that A1 cell also be blank. Now it gives "#N/A" then. How to overcome that?
    Attached Files Attached Files
    Last edited by rcurious; 07-03-2010 at 03:24 PM. Reason: deleted spurious quote

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,112

    Re: How to bring text to cell from column

    Try to add error handle.

    Please Login or Register  to view this content.
    HTH,
    windknife

  8. #8
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: How to bring text to cell from column

    Quote Originally Posted by windknife View Post
    Try to add error handle.

    Please Login or Register  to view this content.
    HTH,
    windknife
    Thank you both. Now it seems that everything goes well
    Last edited by rcurious; 07-04-2010 at 12:41 PM.

+ 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