+ Reply to Thread
Results 1 to 9 of 9

Multiple Lookups and SumIf

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Multiple Lookups and SumIf

    Hi,

    I have an excel sheet with three sheets.

    Main Page- This sheet is where the formulas needs to be. It will have Names,Dates and the cells where we need to do a lookup.

    Dump- This is the placeholder for the data. I need to fetch data from this sheet for the corresponding date and name with the main page. All is well till here.

    But the problem comes in the Names being displayed in the Main Page and the Dump Sheet. The Names are not same.It is shortened in the main page.
    For example

    Main Page might have name as Russ. There will be no reference to Russ in Dump Sheet. It will have names like Russel Peters, Russel Mccabe etc...

    I need to do a match for this.

    To help in this matching, there is a sheet called as Reference. It provides the mapping between the names in Main page and Dump sheet.

    So I need a formula which takes the name in the Main Page, gets the corresponding name in the dump sheet and does a match based on date for that name.

    I have attached the XLS too.

    I need this mainly in Google docs but if this is not possible in google docs i am ok with excel too.

    Can someone please help me on this.
    Attached Files Attached Files

  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: Multiple Lookups and SumIf

    try

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if above suits your need you could include the iferror statement.
    =iferror(theforumlaabove,"")
    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
    04-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Multiple Lookups and SumIf

    Thanks for the reply vlady.

    My Bad, i missed a point. When i say the names wont match there can be a case like this too.

    Please Login or Register  to view this content.
    Eventhough all the names start with Russel, the main page can have some entries with Russ and others can be different.

    I have attached the modified excel sheet.

    Sorry for the confusion caused
    Attached Files Attached Files

  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: Multiple Lookups and SumIf

    I have no idea based on your output since

    RP = 10

    you have 2 RP that's..

    Russell Peters =15
    Russel Parker =10

    are your outputs correct?

  5. #5
    Registered User
    Join Date
    04-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Multiple Lookups and SumIf

    Hi,

    Only Russell Parker will come under RP, its value is 10. In this case there are two Russ.

    Russell Peters is mapped to Russ, so value of Russ will be the sum of Russell Peters and Russel Mccabe.

    Please let me know if this is unclear.

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

    Re: Multiple Lookups and SumIf

    oops. I was not thinking at the reference tab sorry my bad.
    I think I have to get sleep been 16 hours working.
    members are looking now at this thread hope they can come up.
    Sorry, if ever I will be looking to it if not yet solved, have to rest for a while.

  7. #7
    Registered User
    Join Date
    04-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Multiple Lookups and SumIf

    Thanks vlady for your time I hope the thread will be solved sooner too

  8. #8
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Multiple Lookups and SumIf

    hi sasindiv. life would be much easier if you can fill in the blank cells of the "Reference" sheet with names. So E6 would be "Michael". if you have a lot to fill up, you can use this method:
    1. select B4.*
    2. click & drag the scroll bar to the end where the data of column B ends (say 100)
    3. press & hold the SHIFT key & left click on the last cell in column B (B100). you should see them all selected
    4. press CTRL + G -> Special -> Blanks -> OK. now only blanks are selected
    5. do not click anywhere else. press the "=" sign
    6. press the UP arrow key
    7. hit CTRL & ENTER

    with that, your formula in B4 of "Main Page" would simply be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    custom format cells as this to hide zeroes:
    General;;

    or if you don't wish to format cells like that, then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if it's impossible to fill up the blank names, then maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    above is an array formula to be confirmed with CTRL + SHIFT + ENTER
    Last edited by benishiryo; 06-12-2013 at 03:49 AM. Reason: addition

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  9. #9
    Registered User
    Join Date
    04-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Multiple Lookups and SumIf

    Hi Benishiryo ,

    Thanks for the detailed explanation.

    I am ok with filling the blank cells in the reference sheet. And the formula you provided worked.

    Thanks for helping me out.

+ 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