Inserting new rows into existing data

Joined
Jul 6, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to update data with new rows whilst keeping all the previous data entered. All the data in columns A-C are exportable - Column D is manually added notes.

In the example below we had 3 fruits on the day I first exported the data and I've added a comment in column D.

Is it possible to re-export the data (now with 5 fruits) but keep the data in the "Notes" column from my previous export?

Column AColumn BColumn CNOTESColumn AColumn BColumn CNOTES
Apples
50​
MondayDelivered AMApples
50​
MondayDelivered AM
Pears
100​
TuesdayPeaches
25​
MondayMissed Delivery
Oranges
150​
WednesdayDelivered PMPears
100​
Tuesday
Bananas
200​
WednesdayDelivered AM
Oranges
150​
WednesdayDelivered PM
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Yes you can do that by right clicking on the row number and clicking insert
 

Attachments

  • 1672773580053.png
    1672773580053.png
    129.3 KB · Views: 7
Upvote 0
Thanks @shinigamilight but I'm not sure that explained the problem correctly. I tried to do a very basic example but maybe a more detailed explanation is required.

Let's say I have 2 documents - the first one has the following and I get this on Monday:

Column AColumn BColumn C
Apples
50​
Monday
Pears
100​
Tuesday
Oranges
150​
Wednesday

I then have a master document which I paste columns A/B/C into then in column D I add notes:

Column AColumn BColumn CNOTES
Apples
50​
MondayDelivered AM
Pears
100​
Tuesday
Oranges
150​
WednesdayDelivered PM

Then on Friday, I export a new (updated version) of document 1. This document has the same information from Monday but additional information is scattered within the document. Peaches have now become line 3 and Pears have become line 4 for example.


Column AColumn BColumn C
Apples
50​
Monday
Peaches
25
Monday
Pears
100​
Tuesday
Bananas
200
Wednesday
Oranges
150​
Wednesday

What I want to achieve is the ability to paste the whole of Friday's export into the master document whilst keeping the comments in the D column aligned to the correct row.

Column AColumn BColumn CNOTES
Apples
50​
MondayDelivered AM
Peaches
25​
MondayMissed Delivery
Pears
100​
Tuesday
Bananas
200​
WednesdayDelivered AM
Oranges
150​
WednesdayDelivered PM

So the above example is what I want to see. However, if I just pasted the new document 1 in columns A/B/C I would see this:

Column AColumn BColumn CNOTES
Apples
50​
MondayDelivered AM
Peaches
25​
Monday
Pears
100​
TuesdayDelivered PM
Bananas
200​
Wednesday
Oranges
150​
Wednesday

This is wrong, as Line 3 is showing Pears "Delivered PM" The note that I originally put for Oranges.

My real version of this document is not using fruit and has more columns that need to move down with the changes. I would like to know if there is any way of doing that.
 
Upvote 0
Does the master sheet contain data from the past too? If the master sheet contains data only for the week what you can do is use index and match to pull the notes from the master sheet to the Friday sheet and make the Friday sheet your master sheet.
 
Upvote 0
@shinigamilight it's only for the week - so how would I get the INDEX MATCH to work?

I've attempted it but coming up short...

In my workbook, I have master (where I add column D), export 1 & 2.

As suggested I tried to add my formula to export 2 but I'm not quite getting the right result.

My formula attempt was =INDEX(Master!$A$1:$D$4,MATCH(1,(A:A=Master!A2)*(B:B=Master!B2)*(C:C=Master!C2),0),4)

1672846927802.png


1672846967080.png


1672846999608.png

But as you can see it's displaying the notes but on the wrong rows. Below is what i want to see.

1672847131516.png


Thanks in advance for any extra help with the formula :-)
 
Upvote 0
D2: =IFERROR(INDEX(Master!$D$2:$D$4,MATCH(A2&B2&C2,Master!$A$2:$A$4&Master!$B$2:$B$4&Master!$C$2:$C$4,0)),"")
 

Attachments

  • 1672854645367.png
    1672854645367.png
    59.4 KB · Views: 6
Upvote 0
Solution

Forum statistics

Threads
1,224,590
Messages
6,179,752
Members
452,940
Latest member
rootytrip

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