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
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Book1.xlsx
MNOPQRSTUVWXYZAAABACADAEAFAGAHAI
1
2
3
4
5LAST UPDATEDLast Item sentDate sentMethodItemRec'd back dateCompleteDate sentMethodItemRec'd back dateCompleteDate sentMethodItemRec'd back dateCompleteDate sentMethodItemRec'd back dateCompleteOPT OUT Reason
63/21/21FORM C1/1/21PostFORM A2/2/21NO1/2/21EmailMessage 11/21/21NO2/3/21emailFORM B2/10/21no3/21/21EMAILFORM C
71/1/21FORM A1/1/21PostFORM A
82/5/21FORM B1/2/21PostFORM A2/3/21NO2/5/21PostFORM B
92/3/21Message 21/3/21PostFORM A2/2/21NO1/2/21EmailMessage 11/21/21NO2/3/21emailMessage 2
10NO ENTRIESNO DATA
113/2/2101/5/21PostFORM A3/2/21YES
121/6/21FORM A1/6/21PostFORM A
13NO ENTRIESDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not UseDo Not Use
14
15
Sheet1
Cell Formulas
RangeFormula
N6:N12N6=IFERROR(INDEX(Q6:AF6,MATCH(M6,O6:AD6,)),"NO DATA")
M6:M13M6=IFERROR(AGGREGATE(14,6,O6:AD6,1),"NO ENTRIES")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Y13Cell Valuecontains "Postal"textNO
Y13Cell Valuecontains "Awaiting"textNO
Y13Cell Valuecontains "OPT OUT"textNO
Y13Cell Valuecontains "Do Not Use"textNO
Y13Cell Valuecontains "Partially"textNO
Y13Cell Valuecontains "No"textNO
Y13Cell Valuecontains "Yes"textNO
Y13Cell Valuecontains "Invalid phone number"textNO
Z13:AH13Cell Valuecontains "Postal"textNO
Z13:AH13Cell Valuecontains "Awaiting"textNO
Z13:AH13Cell Valuecontains "OPT OUT"textNO
Z13:AH13Cell Valuecontains "Do Not Use"textNO
Z13:AH13Cell Valuecontains "Partially"textNO
Z13:AH13Cell Valuecontains "No"textNO
Z13:AH13Cell Valuecontains "Yes"textNO
Z13:AH13,AG14:AG15Cell Valuecontains "Invalid phone number"textNO
AG14:AG15Cell Valuecontains "Postal"textNO
AG14:AG15Cell Valuecontains "Awaiting"textNO
AG14:AG15Cell Valuecontains "OPT OUT"textNO
AG14:AG15Cell Valuecontains "Do Not Use"textNO
AG14:AG15Cell Valuecontains "Partially"textNO
AG14:AG15Cell Valuecontains "No"textNO
AG14:AG15Cell Valuecontains "Yes"textNO
M5Cell Valuecontains "~?"textNO
M5Cell Valuecontains "NO"textNO
M5Cell Valuecontains "YES"textNO
 
Upvote 0
for M6 (should works in 2016)
Excel Formula:
=IF(MAX(IF($O$5:$AH$5="Date sent",O6:AH6,"")),MAX(IF($O$5:$AH$5="Date sent",O6:AH6,"")),"")
 
Upvote 0
ok check these below
for M6 (Control + Shift + Enter in Excel 2016)
Excel Formula:
=IF(MAX(IF($O$5:$AH$5="Date sent",O6:AH6,"")),MAX(IF($O$5:$AH$5="Date sent",O6:AH6,"")),"NO ENTRIES")
for N6
Excel Formula:
=IF(M6="NO ENTRIES", IF(O6="Do Not Use", "Do Not Use","NO DATA"),(INDEX(O6:AH6,MATCH(M6,O6:AH6,0)+2)))
 
Upvote 0
Change to formula in col M to
Excel Formula:
=IFERROR(1/(1/AGGREGATE(14,6,O6:AD6/($O$5:$AD$5="Date Sent"),1)),"NO ENTRIES")
and in col N
Excel Formula:
=IF(M6="No entries","NO DATA",INDEX(Q6:AF6,MATCH(M6,O6:AD6,)))
 
Upvote 0
for M6 (should works in 2016)
Excel Formula:
=IF(MAX(IF($O$5:$AH$5="Date sent",O6:AH6,"")),MAX(IF($O$5:$AH$5="Date sent",O6:AH6,"")),"")
Hi billszysz, still unable to get your formulas to work. But I think FLUFF has solved it. Thank you for trying to help me.
 
Upvote 0
Change to formula in col M to
Excel Formula:
=IFERROR(1/(1/AGGREGATE(14,6,O6:AD6/($O$5:$AD$5="Date Sent"),1)),"NO ENTRIES")
and in col N
Excel Formula:
=IF(M6="No entries","NO DATA",INDEX(Q6:AF6,MATCH(M6,O6:AD6,)))
Hi Fluff, thank you both formulas are now working brilliantly. I really appreciate your help and perseverance. Have a good day.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Change to formula in col M to
Excel Formula:
=IFERROR(1/(1/AGGREGATE(14,6,O6:AD6/($O$5:$AD$5="Date Sent"),1)),"NO ENTRIES")
and in col N
Excel Formula:
=IF(M6="No entries","NO DATA",INDEX(Q6:AF6,MATCH(M6,O6:AD6,)))
Hi again Fluff. I have discovered a minor problem with the formula for Cell N6.

For example, when I enter anything in the columns to the right after my last entry in the Item Columns (Q, V, AA or AF) then the value in the relevant N column shows a 0. I need N to show the last item entered in Q, V, AA or AF and only change it to when a new item is added to any of subsequent columns Q, V, AA, AF. So if column Q has an entry then N will show this item even after further data is entered in columns R, S, T, U and only change when an item is added in column V.

I hope I have explained this sufficiently and would greatly appreciate your help.

Thanks
 
Upvote 0
Hi billszysz, still unable to get your formulas to work. But I think FLUFF has solved it. Thank you for trying to help me.
You have to validate the formula by pressing the Ctrl + Shift + Enter keys simultaneously (this is an array formula)
 
Upvote 0

Forum statistics

Threads
1,215,226
Messages
6,123,734
Members
449,116
Latest member
alexlomt

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