+ Reply to Thread
Results 1 to 4 of 4

Formula Help

  1. #1
    Registered User
    Join Date
    06-25-2008
    Posts
    22

    Formula Help

    Good Morning,

    Am having a bit of trouble coming up with the correct formula here at work. I am new to Excel Formulas and am hoping someone can help. I have attached my workbook that has 2 sheets. In worksheet Totals i have column F titled CPT. I need a formula that will match the values from each cell in column F to my worksheet titled CPT using column 1. If the match is found, return the value from worksheet CPT column 2. I thought this would be easy but my following formula isnt correct. Can anyone help me out?

    =INDEX(CPT!$a$5:$a$511,MATCH($f$8,CPT!$b5:$b$511,0),2)

    Thanks
    Attached Files Attached Files

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

    It seems the numbers in Column A of CPT are actually formatted as text.

    Fix this by selecting column A and go to Data|Text to Columns and click Finish.

    Then you can use a Vlookup() formula for what you are doing...

    Try, in P5 of Totals sheet: =VLOOKUP(F5,CPT!$A$5:$B$511,2,0) copied down.
    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
    06-25-2008
    Posts
    22
    That worked great.

    Is there a way to do that for all 1700 rows? Or do i have to paste it one by one?

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

    Select cell P5 where you entered the formula. Then click and hold the little black square at the bottom right corner of the cell and drag it down as far as you need... the formula will copy and update as necessary.

+ 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