+ Reply to Thread
Results 1 to 8 of 8

Need help with getting text and cell info from another cell together.

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    provo, utah
    MS-Off Ver
    Excel 2013
    Posts
    7

    Need help with getting text and cell info from another cell together.

    I have a long list of bin numbers that need to find their way into a cell that states
    *** Selection.FormatConditions.Add Type:=xlTextString, String:="374327", _
    where it says 374327, I need that to come from a long list of cells that have similar six digit numbers.

    basically I want it to do something like *** Selection.FormatConditions.Add Type:=xlTextString, String:="A2", _ etc.
    Selection.FormatConditions.Add Type:=xlTextString, String:="A3", _

    If anyone could help me out that would be great!
    as a side note this comes from a macro recorded with conditional formatting.

  2. #2
    Registered User
    Join Date
    11-06-2013
    Location
    provo, utah
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Need help with getting text and cell info from another cell together.

    also the quotation marks around the number and the comma and underscore after are part of the text and need to be there

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

    Re: Need help with getting text and cell info from another cell together.

    Welcome to the forum.
    May I suggest that you upload a sample file of atleast 10 data set including expected out put so others can help.

    Thank you for joining.
    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

  4. #4
    Registered User
    Join Date
    11-06-2013
    Location
    provo, utah
    MS-Off Ver
    Excel 2013
    Posts
    7

    I have uploaded an example of how it should look.

    Please help anybody, I have been going at it for a couple of hours to no avail.
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Need help with getting text and cell info from another cell together.

    Hi and welcome to the forum

    You cannot change just column A to include the values in column E, you will need to use a helper column for this (unless you want to use VBA), So maybe something like this, copied down (I used column B)?
    =A2&""""&E2&""""

    If you dont want the helper, you can then copy/paste values from B to A, and then delete B
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    11-06-2013
    Location
    provo, utah
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Need help with getting text and cell info from another cell together.

    Thanks, but actually I do want to use VBA if that helps. Basically I have a huge sheet of information. One column has 16 digit codes, and I need the codes that begin with certain 6 numbers (i have 1500 of these 6 digit codes) to mark themselves red or something through a macro. On the attached file, column A is actually a recorded macro using conditional formatting. It shows a rule that marks red any cell that begins with those six digits.

    If there is an easier way to build a macro using conditional formatting or something else like a function then that would be awesome.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Need help with getting text and cell info from another cell together.

    OK, then I will move this to the VBA forum to get better coverage there

  8. #8
    Registered User
    Join Date
    11-06-2013
    Location
    provo, utah
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Need help with getting text and cell info from another cell together.

    Quote Originally Posted by FDibbins View Post
    OK, then I will move this to the VBA forum to get better coverage there
    Ok thanks I appreciate it

+ 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. Formula in cell containing Text and other info
    By tlb27 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2013, 03:47 PM
  2. Reference Cell's text without formula info
    By lottidotti in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2012, 10:56 AM
  3. Replies: 1
    Last Post: 04-30-2010, 01:14 PM
  4. Dynamic Cell info based on another cell text
    By yunier2002 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2008, 04:36 PM
  5. macro to shrink text when too much info in one cell
    By Don Juan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-20-2008, 02:21 PM

Tags for this Thread

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