Add missing value into cell when criteria are met

letchimera

New Member
Joined
Jan 13, 2018
Messages
3
Hi All,

I have a sheet with data and comments added to it. However, this data is changing and new reports need to be run. However, the comment field is the same for the old data.
So i would like find and insert the value in the cells from "Comment" column into the new spreadsheet, as per below:


Old spreadsheet:
[TABLE="width: 642"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Tag[/TD]
[TD]Name[/TD]
[TD]State[/TD]
[TD]Comment[/TD]
[/TR]
[TR]
[TD]13/01/2018[/TD]
[TD]05:08:58[/TD]
[TD]Operations[/TD]
[TD]Stefan[/TD]
[TD]ON[/TD]
[TD]In spain has rain again[/TD]
[/TR]
[TR]
[TD]12/01/2018[/TD]
[TD]07:08:17[/TD]
[TD]Banking[/TD]
[TD]Deidra[/TD]
[TD]ON[/TD]
[TD]Door was opened[/TD]
[/TR]
[TR]
[TD]04/01/2018[/TD]
[TD]16:15:27[/TD]
[TD]Consult[/TD]
[TD]Mike[/TD]
[TD]ON[/TD]
[TD]Door was closed[/TD]
[/TR]
</tbody>[/TABLE]

New spreadsheet, where data is missing:

[TABLE="width: 642"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Tag[/TD]
[TD]Name[/TD]
[TD]State[/TD]
[TD]Comment[/TD]
[/TR]
[TR]
[TD]13/01/2018[/TD]
[TD]05:08:58[/TD]
[TD]Operations[/TD]
[TD]Stefan[/TD]
[TD]ON[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/01/2018[/TD]
[TD]07:08:17[/TD]
[TD]Banking[/TD]
[TD]Deidra[/TD]
[TD]ON[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]04/01/2018[/TD]
[TD]16:15:27[/TD]
[TD]Consult[/TD]
[TD]Mike[/TD]
[TD]ON[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The Date, Time and Tag need to be the Unique Identifier. I was thinking something like IF(A2,B2,C2 found in '1201'! Then insert F"value" in '1301'! Fx)
Any help Is greatly appreciated.

Regards,
Stefan
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi Stefan!

If you are able to add a helper-column to the old spreadsheet, you could use a simple VLOOKUP or INDEX MATCH?

The helper-column would be something like =Date&Time&Tag and the VLOOKUP would be =VLOOKUP(Date&Time&Tag,[OldSpreadsheet]Book1!$A$2:$G$4,7,0)
(This is based on if the old data is in another workbook, with the helper-column in column A. And the new data is set up from column A1, and the formula in the comment column.)

br.
Henrik
 
Upvote 0
Hi Henrik!

Thank you for the help here!

I let you know if I succeed in setting that up.

KR.
Stefan
Hi Stefan!

If you are able to add a helper-column to the old spreadsheet, you could use a simple VLOOKUP or INDEX MATCH?

The helper-column would be something like =Date&Time&Tag and the VLOOKUP would be =VLOOKUP(Date&Time&Tag,[OldSpreadsheet]Book1!$A$2:$G$4,7,0)
(This is based on if the old data is in another workbook, with the helper-column in column A. And the new data is set up from column A1, and the formula in the comment column.)

br.
Henrik
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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