Reverse Excel

zazybang

New Member
Joined
May 6, 2018
Messages
23
Hey guys, when using the INDEX(MATCH function it will find the very first row that meets the criteria. How would i make it find the last row that has said value?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Can you elaborate.
You wrote:
"How would i make it find the last row that has said value"
You only want to know the last row number?
You want the value in some cell in the last row of the criteria?
Does the criteria exist several places in a column (if so, which column) and you want to find a value in another column (if so, which column) on that same row?
Or maybe your worksheet is set up totally different or your question is about something totally different. If so, need more info.
 
Upvote 0
Ok, so i linked a response form to my spreadsheet. On sheet A i have a list of name in column A. On the response sheet, i have column A giving dates based on user input. On sheet A column B, I need a formula that will place the date of the lastest response from the name the date corresponds with EX:
Bobby fills out a form March 8th, Bobby once again fills a form but this time its on March 9th. I need the formula to list the date of his LATEST response.
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Names[/TD]
[TD="align: center"]Dates[/TD]
[/TR]
[TR]
[TD="align: center"]a[/TD]
[TD="align: center"]=Input formula[/TD]
[/TR]
[TR]
[TD="align: center"]x[/TD]
[TD="align: center"]=Input formula[/TD]
[/TR]
[TR]
[TD="align: center"]f[/TD]
[TD="align: center"]=Input formula[/TD]
[/TR]
</tbody>[/TABLE]

Response Sheet
[TABLE="width: 500"]
<tbody>[TR]
[TD]Names[/TD]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]May 12th[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]May 12th[/TD]
[/TR]
[TR]
[TD]f[/TD]
[TD]May 12th[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]May 13th[/TD]
[/TR]
</tbody>[/TABLE]
^I want the formula to take this data as its more recent than row 1
 
Upvote 0
=LOOKUP(9.99999999999999E+307,1/(NamesRange="zazybang"),DatesRange)

This returns last date for zazybang. If dates in DateRange is in chronological order, the last date = the most recent date.
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Names[/TD]
[TD="align: center"]Dates[/TD]
[/TR]
[TR]
[TD="align: center"]a[/TD]
[TD="align: center"]=Input formula[/TD]
[/TR]
[TR]
[TD="align: center"]x[/TD]
[TD="align: center"]=Input formula[/TD]
[/TR]
[TR]
[TD="align: center"]f[/TD]
[TD="align: center"]=Input formula[/TD]
[/TR]
</tbody>[/TABLE]

Response Sheet
[TABLE="width: 500"]
<tbody>[TR]
[TD]Names[/TD]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]May 12th[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]May 12th[/TD]
[/TR]
[TR]
[TD]f[/TD]
[TD]May 12th[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]May 13th[/TD]
[/TR]
</tbody>[/TABLE]
^I want the formula to take this data as its more recent than row 1





It isn't simpler than it looks, You cannot simply return the most recent date for each name simply by the formula. I guess you need a vba function to do the same.

although, I tried to formulate it with formula but could only return name having the most recent date

here is a code

Code:
=IF(INDEX($B$5:$C$7,MATCH(E5,$B$5:$B$7,),2)=MAX($C$5:$C$7),(INDEX($B$5:$C$7,MATCH(E5,$B$5:$B$7,),2)))

eee70ae12f26652558260f66e3faecb6.png
 
Upvote 0
It isn't simpler than it looks, You cannot simply return the most recent date for each name simply by the formula. I guess you need a vba function to do the same.

although, I tried to formulate it with formula but could only return name having the most recent date

here is a code

Code:
=IF(INDEX($B$5:$C$7,MATCH(E5,$B$5:$B$7,),2)=MAX($C$5:$C$7),(INDEX($B$5:$C$7,MATCH(E5,$B$5:$B$7,),2)))

eee70ae12f26652558260f66e3faecb6.png

i ended up having to use a query formula in order to have responses placed in ascending order rather than descending
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top