+ Reply to Thread
Results 1 to 9 of 9

Indexing and matching cells across two sheets

  1. #1
    Registered User
    Join Date
    12-27-2013
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2011
    Posts
    3

    Indexing and matching cells across two sheets

    Hi there,

    In the example Excel document attached, the Contact Names and Numbers in my address book are on the sheet titled 'Contacts in column A and B respectively.

    I need to match up the Contact names in Colomn A to the Numbers Dialled in column D in the sheets October and November.

    I have created a column F where this data should dynamically be entered into. Please could someone assist me by defining the formula I should use in these cells?

    Thanks in advance for your assistance

    Rebecca
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Indexing and matching cells across two sheets

    One way
    In October,
    place in F2: =IF(ISNA(MATCH(D2,Contacts!B:B,0)),"Not found",INDEX(Contacts!A:A,MATCH(D2,Contacts!B:B,0)))
    Copy down
    Do the same in November
    -----------------------
    Success? Wave it, hit the little star at the bottom left of my responses

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: Indexing and matching cells across two sheets

    Hi there,

    Or you may also used this in the column F.

    Please Login or Register  to view this content.
    Click * below if this answer helped

  4. #4
    Registered User
    Join Date
    12-27-2013
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Indexing and matching cells across two sheets

    Hi Max,

    Thanks for your response, it works!

    I have realised that the formatting is incorrect on some of the numbers in the call records, as some numbers include the area code (27) before the cell number. Do you have a formula I can use to split out the first two digits on some of the cells that this occurs in? I will then just delete the cells with 27 in them.

    Let me know if this is possible.

    Thanks in advance,

    Rebecca

  5. #5
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Indexing and matching cells across two sheets

    You could try this in October, November
    In G2: =IF(LEFT(D2,2)="27",RIGHT(D2,LEN(D2)-2)+0,D2+0)
    Copy down, then copy col G and overwrite col D with a paste special as values. Clear col G

  6. #6
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: Indexing and matching cells across two sheets

    try this:

    Please Login or Register  to view this content.
    This will delete whatever area code you have there and delete extra spaces to avoid errors when using index match.
    Last edited by reimar_rem; 12-27-2013 at 05:42 AM.

  7. #7
    Registered User
    Join Date
    12-27-2013
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Indexing and matching cells across two sheets

    Thank you, it works!

    My version of excel does not accept commas but after converting commas to semi-colons it accepted the formulas.

    I am trying to calculate the number of minutes spent by adding up the duration figures in column C. The total I am getting is not accurate as the format is in time. What would you recommend in order to calculate total minutes in column c, for both sheets October and November?

    Thanks in advance, this has been really helpful.


  8. #8
    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,939

    Re: Indexing and matching cells across two sheets

    Hi and welcome to the forum
    Hoe gaan did daar in Durb's? (My sister lives there)

    Do you want this by month or by number?

    By number...
    Make a copy of all numbers in a blank column (I used I)
    Use "Remove duplicates" to give a list of unique numbers
    copy this down...=SUMIF(D:D,I2,C:C)
    format as Time - 37:30:55

    By month...
    =SUM(C:C)
    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

  9. #9
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Indexing and matching cells across two sheets

    > .. I am trying to calculate the number of minutes spent by adding up the duration figures in column C

    Your data in October (eg) is ideal for pivot table analysis
    Create a pivot on the data, drop Number dialled into Row, drop Duration into Data (set it to Sum), format as Time to taste

+ 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. Indexing and Matching
    By Puth2012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-16-2013, 11:28 AM
  2. Indexing and matching data from date range and matching
    By Rickomicko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 11:46 AM
  3. [SOLVED] help regarding indexing and matching
    By praveen.991 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-08-2013, 01:44 AM
  4. Matching and Indexing
    By vfaulkner in forum Excel General
    Replies: 6
    Last Post: 07-09-2012, 04:13 PM
  5. indexing/matching
    By chrisatola in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2007, 12:51 AM

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