Copying information from earlier entries

Zaqee

New Member
Joined
Apr 30, 2018
Messages
2
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]SAM[/TD]
[TD]$1500[/TD]
[TD]0.3%[/TD]
[TD]SMALL[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TERRY[/TD]
[TD]$400[/TD]
[TD]1.3%[/TD]
[TD]MEDIUM[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]JONES[/TD]
[TD]$1300[/TD]
[TD]4.5%[/TD]
[TD]SMALL[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ERIK[/TD]
[TD]$200[/TD]
[TD]2.2%[/TD]
[TD]MICRO[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]SAM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I'm trying to make a formula that would copy information from earlier entries if they exists.

So in this case, as soon as I've typed in SAM in A5, cell B1 would be copied to B5 (and so on).

I assume this could be done by LOOKUP function but I haven't been able to make it work.

Thanks,
Zack
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try this:

Column B:

=VLOOKUP(A5, $A$1:D4, 2, 0)

Column C:

=VLOOKUP(A5, $A$1:D4, 3, 0)

Column D:

=VLOOKUP(A5, $A$1:D4, 4, 0)

If the entry has appeared previously, the data will auto populate.
 
Last edited:
Upvote 0
Try this:

Column B:

=VLOOKUP(A5, $A$1:D4, 2, 0)

Column C:

=VLOOKUP(A5, $A$1:D4, 3, 0)

Column D:

=VLOOKUP(A5, $A$1:D4, 4, 0)

If the entry has appeared previously, the data will auto populate.

This returns an error, I think it's because VLOOKUP can't look to it's left.

Thank anyway.
T
 
Upvote 0
It should work for Sam but return N/A when duplicating down the column if the name has not appeared previously which means you would need to populate.

If you want to get rid of this you could wrap an =ifna(formula, " ") around it.

For example:

=IFNA(VLOOKUP(A5, $A$1:D4, 2, 0), " ")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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