+ Reply to Thread
Results 1 to 6 of 6

Add info from a cell with a specific value

  1. #1
    Registered User
    Join Date
    12-07-2007
    Posts
    14

    Add info from a cell with a specific value

    I have text information that i need to arrange in an issuable format. Unforunitaly the cells change when the data is pasted in.

    For exampe if i have 2 parts of informatin being

    Name: Tom
    Surname: Jones


    Is there any forumlas that let able you to search a column for in this instance "name:" and place the value of that cell into the forumla cell!

    Example

    Cel C1 = Name: Tom
    Cell C2 Surname: Jones

    Cell A1= Formula searches Column C for Name: Finds Cell C1 and Places "Name: Tom" in cell A1

    Thanks in Advance

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Add info from a cell with a specific value

    there are various ways of doing this sort of thing, depending on how exactly info is presented/laid out , attach a sheet with a few on ,
    problem with searching /matching though is it'll only ever find first name if 2 are the same.
    e,g if its always in c starting c1 no spaces
    tom
    smith
    fred
    bloggs
    eric
    cartman
    then in a1
    =INDIRECT("C"&ROW()*2-1)
    and in a2
    =INDIRECT("C"&ROW()*2)
    dragged down will give
    tom smith
    fred bloggs
    eric cartman
    Last edited by martindwilson; 02-19-2009 at 07:21 AM.

  3. #3
    Registered User
    Join Date
    12-07-2007
    Posts
    14

    Re: Add info from a cell with a specific value

    May be best i give some background to what i am trying to do. I am in the process of opening an online shop. The Cms System that has been provided to me provides me with a text output for each order. I am looking to set up an Excel Template so that i can simply copy and paste and excel will duplicate the info i require to create a despatch note etc.

    The text information is as follows

    Name: Tom
    Surname: Jones
    Email: [email protected]
    Address1: Dunhill Road
    Address2: Bridge Farm Road
    City: Uckfield
    County: East Sussex
    Postcode: TN22 5AL

    Problem being is that although this pastes the details in a common column the row numbers change from time to time depending what has been entered
    Ideally i would like to enter a forumla into another cell to duplicate what is in each of the above. if the search was set up to search "name:" in that cell would be "Name: Tom"

    It doesnt matter that the descriptions are included i have another forumla which will remove a set number of charactors at the start or end. But the end product will just be the persons name and address.

    Please see Attached Excel Spreadsheet for more info.

    Thank you for your time and your help.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add info from a cell with a specific value

    In C10, put this formula:

    =TRIM(INDEX(I:I,MATCH("*Name:*",I:I,0)))

    Just change it to "*Surname:*" for D10...continue the same.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Add info from a cell with a specific value

    "Funky Star Shoe Laces" im sure i saw that on this forum some time ago lol

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add info from a cell with a specific value

    Quote Originally Posted by martindwilson View Post
    "Funky Star Shoe Laces" im sure i saw that on this forum some time ago lol
    What are funky star shoe laces?

+ 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