+ Reply to Thread
Results 1 to 9 of 9

Number and text in same cell

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    perth
    MS-Off Ver
    Excel 2010
    Posts
    18

    Number and text in same cell

    Hi

    I need a formula to do the following example


    A2.....6 Steven..........B2.....1..........C2....."blank"
    A3.....2 Gary.............B3.....2..........C3.....2
    A4.....4 Luke.............B4.....3..........C4....."blank"
    A5.....5 Paul..............B5.....4..........C5.....3
    A6.....1 George..........B6.....5..........C6.....4
    A7.....3 Adam............B7.....6..........C7.....1

    so i need C cells to look if the A cells have a certain number in B cells then give it a number in C cells according to the order

    also if possible i'd like the data above in "A" to be on another sheet eg. "A" on sheet1 and "B & C" on sheet2

    hope this made sense

    thanks in advance

    jamie
    Last edited by JBA512; 12-01-2012 at 01:12 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Number and text in same cell

    Hi Jamie,

    Try using below formula:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached vlookup with increasing range.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Number and text in same cell

    If Column A is always "number" space "some text"

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To handle errors. In C2, Drag/Fill Down

    2003
    =IF(ISERROR(formula),"",formula)

    2007
    =IFERROR(formula,"")
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    perth
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Number and text in same cell

    those didn't seem to work for me

    i have decided to extract the numbers from the data now into other cells

    having trouble with this formula displaying a false

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    i have the numbers 1,2,3,4,5,6,7,8,9,10 in cells a3 down to a12

    i have numbers between 1 and 10 in cells a21 to a24

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Number and text in same cell

    Why not post a sample workbook, showing your layout, and expected results?

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic

  6. #6
    Registered User
    Join Date
    11-26-2012
    Location
    perth
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Number and text in same cell

    here is the file i'm working on

    i plan to add more later on but wanting to get the basic data working right first
    Attached Files Attached Files

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Number and text in same cell

    Try this in A3, drag down :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps

    -Edit-
    this in c3 will work if you drag down and across
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by dredwolf; 12-01-2012 at 01:15 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  8. #8
    Registered User
    Join Date
    11-26-2012
    Location
    perth
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Number and text in same cell

    thanks that works

    i just tweaked it a little bit to drag across too

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 12-01-2012 at 01:13 PM. Reason: As per Forum Rule #12, don't quote whole posts unless necessary-- it's just clutter.

  9. #9
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Number and text in same cell

    yes, I did same in my edit

    Glad it worked for you

+ 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