Auto add last entered data in same row

Detectiveclem

Active Member
Joined
May 31, 2014
Messages
320
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi can anyone help with a formula which will allow the last date entered in a row to be captured in the last date entered cell (E.G. Cell A2) And the last Item entered to appear in the last item entered cell (EG Cell B2).

Please see the attached sample with the data shown in green for illustration purposes to show the data I want captured.

So for example at present A4 shows 10/01/2021 and B4 shows Application but if further dates or items are entered in G4 / H4 then A4 and B4 change to show the latest information.

I hope I have explained this sufficiently.

Your genius would be greatly appreciated.


7D4C8C41-C0E6-47BA-A71E-5D90C100CF86_4_5005_c.jpeg
 
How about
+Fluff 1.xlsm
MNOPQRSTUVWXYZAAABACAD
5Date of last transactionLast ItemDateItemMethodCompleteDateItemMethodCompleteDateItemMethodCompleteDateItemMethodComplete
602/03/2021Email01/01/2021LetterPostNO02/03/2021EmailExternal emailYES
710/01/2021Application10/01/2021ApplicationCourierYES
825/03/2021Application12/02/2021EmailExternal emailNO14/02/2021LetterPostNO25/03/2021ApplicationCourierYES
925/06/2021Letter12/02/2021LetterPostNO05/03/2021ApplicationCourierNO30/03/2021LetterPostNO25/06/2021LetterPostYes
Master
Cell Formulas
RangeFormula
M6:M9M6=AGGREGATE(14,6,O6:AD6,1)
N6:N9N6=INDEX(P6:AE6,MATCH(M6,O6:AD6,0))
Hi Fluff I have tried both formulas you suggest and we are almost there. I had to change the INDEX formula slightly to the following =INDEX(Q6:AF6,MATCH(M6,O6:AD6,)).

As you'll see from the screen print below, I still have a couple of issues I would appreciate help with.

1. How do I stop the cell in Column M and N displaying #NUM! if no fields have been populated (see M10 & N10 below)
2. As you can see at N11 the result changes from showing the correct details 'FORM A' to '0' when I add the received back date and shown YES in the complete column. I need this to remain as FORM A as it was the last item sent.
Screen shot 23 June 2021.PNG
 
Upvote 0

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).
I do not like working with pictures...give us a real table (part of it of course)
 
Last edited:
Upvote 0
M6
Excel Formula:
=MAX(INDEX(O6:AH6,SEQUENCE(COLUMNS(O6:AH6)/5,,1,5)))
N6
Excel Formula:
=INDEX(O6:AH6,MATCH(M6,O6:AH6,0)+2)
 
Upvote 0
Taking into account the blank rows would be so
M6
Excel Formula:
=LET( max, MAX(INDEX(O6:AH6,SEQUENCE(COLUMNS(O6:AH6)/5,,1,5))),
IF(max,max,""))
N6
Excel Formula:
=IF(M6="","",(INDEX(O6:AH6,MATCH(M6,O6:AH6,0)+2)))
 
Upvote 0
I am trying to upload using XL2BB, but my mini sheet or table options are greyed out. I will keep trying.
 
Upvote 0
If you do not have an Excel 365 then for M6 use this formula below
Excel Formula:
=IF( MAX(INDEX(O6:AH6,SEQUENCE(COLUMNS(O6:AH6)/5,,1,5))), MAX(INDEX(O6:AH6,SEQUENCE(COLUMNS(O6:AH6)/5,,1,5))),"")
ups....sorry, SEQUENCE doesnt exist in other wersion of excel
 
Upvote 0
If you do not have an Excel 365 then for M6 use this formula below
Excel Formula:
=IF( MAX(INDEX(O6:AH6,SEQUENCE(COLUMNS(O6:AH6)/5,,1,5))), MAX(INDEX(O6:AH6,SEQUENCE(COLUMNS(O6:AH6)/5,,1,5))),"")
I need to use it on Excel 2016
 
Upvote 0

Forum statistics

Threads
1,215,234
Messages
6,123,773
Members
449,123
Latest member
StorageQueen24

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