How to auto populate a line of data

johnvoe

New Member
Joined
May 15, 2020
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
As a newbie here apologies for asking what’s probably a basic question but to date I can’t find a solution and hoping someone can help. Briefly I’m transferring ships arrival data from old WW2 books (for our local port) onto a spread sheet with cell headings for Name, Built, Where Built, Length, Grt, Callsign and so on. There is a lot of regular traffic each month so, where a ship has been before,I want to be able to auto populate a new line with all the data already entered by simply entering the ship’s name? At present I can only auto populate the name cell, then search, highlight the entry I want, copy and paste it into the new line. With 5 years of data to enter this is obviously time consuming and I’d like to speed the whole process up by being able to auto populate the whole (horizontal) line of data by simply typing in the ship’s name (obviously this only applies to the vessels that have an entry, with detail, already).
Hoping this can be done in Excel and that someone on here can point me in the right direction!
Many thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi,

Something like this could work:

The IF COUNTIF checks if the same value (name/number) in this case 3, is repeated, then the vlookup finds that value in the same column in the rows above.

Any questions please let me know.

Book1
HI
2010
2120
2235
2340
2435
Sheet1
Cell Formulas
RangeFormula
I20:I21,I23I20=IF(COUNTIF($H$19:H19,H20),1,0)
I24I24=IF(COUNTIF($H$19:H23,H24),VLOOKUP(H24,$H$19:I23,2,FALSE))
 
Upvote 0
Hi, and thank you for replying to my question. At the risk of sounding really stupid about this where exactly would I start with this...? I post below a screen shot of what I’m looking at and maybe you can guide me as to where the code should go. Just to clarify you will see the vessel called Earl of Zetland II appears on the sheet and was obviously a regular caller so the next time I need to make an entry for her I simply want to type in her name and have that whole horizontal line of her (previous) data auto populate the new line (the dates I just amend manually, no probs there)
Thanks again
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,181
Members
449,071
Latest member
cdnMech

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