Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9216001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:19:35+00:00 2026-06-18T02:19:35+00:00

I have this values in my excel: A B C D StaffId FSales ESales

  • 0

I have this values in my excel:

      A      B       C        D             
  StaffId  FSales  ESales    Date  
      1     100     500     23-Jan-13
      1     50      170     25-Jan-13
      1     70      230     26-Jan-13
      2     100     300     25-Jan-13  
      2     130     200     27-Jan-13

Outcome wanted:

      A      B       C        D             
  StaffId  FSales  ESales    Date  
      1     100     500     23-Jan-13 10:00:00AM
      1     50      170     25-Jan-13 11:00:00AM
      1     70      230     26-Jan-13 11:30:00AM
      2     100     300     25-Jan-13 03:00:00PM 
      2     130     200     27-Jan-13 02:00:00PM
      3     100     200     29-Jan-13 01:01:00PM
      3     90      209     29-Jan-13 01:00:00PM


      A      B       C        D             
  StaffId  FSales  ESales    Date 
      1      70      230     26-Jan-13 11:30:00AM
      2      130     200     27-Jan-13 02:00:00PM
      3      100     200     29-Jan-13 01:01:00PM                   

Lets say dates are jumbled up and not arranged in any order. How can i get the latest date Fsales and ESales for each staff?
Meaning getting 70 230 for staffid 1 and 130 200 for staffid 2.
Help needed please

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:19:36+00:00Added an answer on June 18, 2026 at 2:19 am

    Assuming you have the second list with the unique staff ID in Sheet2 and the original list in Sheet1, starting in row 2, enter the following formula:

    FSales max in Sheet2!B2: =INDEX(Sheet1!$B:$B,MATCH(MAX(Sheet1!$D:$D*(Sheet1!$A:$A=A2)),(Sheet1!$D:$D*(Sheet1!$A:$A=A2)),0))

    ESales max in Sheet2!C2: =INDEX(Sheet1!$C:$C,MATCH(MAX(Sheet1!$D:$D*(Sheet1!$A:$A=A2)),(Sheet1!$D:$D*(Sheet1!$A:$A=A2)),0))

    Both formulas are array-formulas, i.e. enter them with Ctrl–Shift–Enter instead of Enter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have data in an Excel spreadsheet with values like this: 0.69491375 0.31220394 The
I have this in res/values/styles.xml <style name=ListViewRowBorder > <item name=android:width>1dp</item> <item name=android:color>@color/listview_row_stroke_color</item> </style> I
I have this code so I can grab the values ind the dataset before
I have this 4 Dimensional array to store String values which are used to
I have this: Create Proc CrearNuevoImagen @imagen image AS INSERT INTO Imagenes(imagen) VALUES( @imagen
I have this query to fetch the total OrderStatus that have values 1 and
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in
I have a dataframe x with this values: x1 x2 x3 1 NA 4
Hi I have this method below which should insert values into my database. However
I have this MySQL query: $SQLquery = INSERT INTO `experimental`.`comments` (`comment_id`, `comment_dt`) VALUES (NULL,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.