+ Reply to Thread
Results 1 to 4 of 4

Excel data arrangement

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Excel data arrangement

    I have two columns with over a 20000 rows. The first column contains name of the elements Cu and Zr randomly arranged. The other column has the type which are two numbers 1 and 2 also randomly arranged. I want to assign number 1 to Cu and no 2 to Zr how should I do that?

    thanks
    Van

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

    Re: Excel data arrangement

    you could post a sample file and expected output...
    or if i got you right
    =if(A1="Cu",1,2)
    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

  3. #3
    Registered User
    Join Date
    08-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Excel data arrangement

    so the data is like this:
    Column A
    Elment
    Zr
    Cu
    Zr
    Cu
    Zr
    Cu
    Zr
    Zr
    Cu
    Zr
    Zr
    Zr
    Cu
    Cu
    Zr
    Zr
    Cu
    Cu
    Zr
    Zr
    Zr
    Zr
    Cu
    Zr
    Cu
    Zr
    Zr
    Cu

    ColumnB
    type
    1
    1
    1
    1
    1
    1
    1
    2
    2
    2
    2
    2
    2

    as I mentioned there are tonnes of rows and I want the output as
    Zu 2
    Cu 1
    Zr 2
    Cu 1
    ......
    and so on its like wherever I have Zr I want the type 2 and for Cu as 1.

    thanks

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

    Re: Excel data arrangement

    i think the formula in post #2 will have that..
    Column B then drag/fill down..

+ 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