+ Reply to Thread
Results 1 to 10 of 10

pull max wins from another sheet

  1. #1
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    pull max wins from another sheet

    sheet 2 has 3 col. -(abc)
    col a is name
    col b is a date
    col c has an amount

    I want to pull max amount(col c) or greater date (col b)for example Sue 01/10/17 $24. However if there is a tie in $ amounts - bob 01/01/17 $24 to only show Sue's info in cell on sheet one.
    Thanks guys!
    Jack

  2. #2
    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,929

    Re: pull max wins from another sheet

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.


    Also, take a look at the LARGE() and MAX functions
    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

  3. #3
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: pull max wins from another sheet

    Ford,
    I have uploaded a file to comply with your email... I thought I explained it good enough. Sorry man!
    Attached Files Attached Files

  4. #4
    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,929

    Re: pull max wins from another sheet

    Do you mean something like this?
    =MAX(C2:C14)

  5. #5
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: pull max wins from another sheet

    yes and no FDibbons. Yes the max function needs to be used to determine date / $ amt. I believe I also need to incorporate the index function. I am needing to show the, name, date , and $ of that particular user - so in the example On sheet 1 it should display in a1 Jack 05/06/16 $20.00 - like this: Jack $05/06/17 $20.00 pulling data from sheet 3.

    If there is a tie(max $) then it goes to following date - example FDibbons wins $20. on 5/10 - Only your name would show!

    Thanks,
    I am still learning - have learned a lot. This inddex function is killing me.
    Thanks again,
    Jack

  6. #6
    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,929

    Re: pull max wins from another sheet

    Lets try this as the next step, and build it as needed...
    =INDEX(A:A,MATCH(MAX(C2:C14),$C$2:$C$14,0))

  7. #7
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: pull max wins from another sheet

    FDibbons,

    While this did pull up a name - it pulled up wrong name. In the example sheet - should of pulled up "Jack" since he has the greatest $ from col c. Instead it is pulling up Anthony. Any ideas?

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: pull max wins from another sheet

    Maybe ...

    =INDEX($A$2:$A$14,MATCH(MAX($C$2:$C$14),$C$2:$C$14,0))

  9. #9
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: pull max wins from another sheet

    That did it Phuocam. Would I have to add seperate index to bring in $ amount (col c) and date(col b)?
    thanks again!

  10. #10
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: pull max wins from another sheet

    Date ...

    =INDEX($B$2:$B$14,MATCH(MAX($C$2:$C$14),$C$2:$C$14,0))

+ 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. Replies: 6
    Last Post: 11-02-2018, 02:19 AM
  2. Replies: 1
    Last Post: 04-20-2015, 03:18 PM
  3. Formula to pull data from one sheet to a new sheet based on date range
    By lisajolley11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2015, 08:38 PM
  4. Replies: 3
    Last Post: 07-28-2014, 05:45 PM
  5. Macro to Pull Info from Product Line Sheet to Purchase Order Sheet
    By JeffreyJr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2012, 11:16 AM
  6. Replies: 4
    Last Post: 09-05-2012, 05:57 PM
  7. Replies: 4
    Last Post: 08-29-2012, 10:32 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