+ Reply to Thread
Results 1 to 4 of 4

Getting data from sheet 2 and putting data to sheet 2

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

    Getting data from sheet 2 and putting data to sheet 2

    Sheet 2 contains:
    A: names
    B: dates of last sale
    C: Commissions


    What I am trying to do is display last 3 sales based on date - Sheet 1 C1 For example Sheet1!C1=03/23/16 I want to display name and commissions from sheet2 on sheet 1 in cells a2:a4 If there is only 1 person - then a3:a4 = "no other" - all based on date from sheet1 c1


    Second Part:

    Would it require some macro / vba to record new row in sheet2 based on another date from sheet1 - I39

    Sheets works fine - just trying to eliminate so much cutting and pasting. Have posted an example
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Getting data from sheet 2 and putting data to sheet 2

    in A2 (unmerge cells in A)

    =IFERROR(INDEX(Sheet2!$A$2:$A$11,SMALL(IF(Sheet2!$B$2:$B$11=$C$1,ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"No other Person")

    in C2

    =IFERROR(INDEX(Sheet2!$C$2:$C$11,SMALL(IF(Sheet2!$B$2:$B$11=$C$1,ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),0)

    enter BOTH with Ctrl+Shift+Enter

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

    Re: Getting data from sheet 2 and putting data to sheet 2

    TY JohnTopley,

    Worked beautifully!

    How would you recommend adding data from sheet 1 to sheet 2. For example I would like either macro / or vba to add another row to sheet2 if there were sales, for the day. Sorta like a end of day type thing.

    Sheet1 has names in J
    Sheet1 has commissions in t
    Sheet1 has date in k41

    I need it placed in sheet2 like the example I uploaded earlier.

    Thank you again, my friend! You have been a super help!
    Jack

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Getting data from sheet 2 and putting data to sheet 2

    Confused as none of the columns mentioned are used/shown in "example4.xlsx".

    Sorry but post another file (referable a copy of the actual file you use rather than a mock-up) showing exactly what you require.

+ 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: 1
    Last Post: 12-08-2015, 03:51 AM
  2. [SOLVED] Putting data from one sheet to another
    By way2tall in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2014, 12:19 PM
  3. Looking to extract data from two columns and putting them in a new sheet
    By wwballar42 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2014, 10:57 PM
  4. Getting data from Access then putting this in new sheet depending on date?
    By alka5eltzer in forum Access Tables & Databases
    Replies: 1
    Last Post: 11-14-2013, 08:40 AM
  5. Grabbing Data From a UserForm and Putting it Into A Sheet Help Please.
    By richter394 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 03:28 PM
  6. Copying a template sheet and putting those multiple sheets data into a summary sheet
    By John Wolfe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:29 PM
  7. [SOLVED] Putting Data in One Sheet
    By Nad in forum Excel General
    Replies: 8
    Last Post: 07-12-2006, 08:14 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