Locking manual data against variable data

Lefty099

New Member
Joined
Jan 24, 2016
Messages
26
Hi all. I hope the following makes sense and thanks in advance for your help.

I have a spreadsheet in which the data is automatically updated every day on sheet 1.
On sheet 2 column D from sheet 1 is copied across to sheet 2 into column B. Sheet 2 B2 =SHEET1!D1

Sheet 2, column C is a column in which I manually input the location of the item on the shop floor.

The problem I am finding is if I sell the last item of a particular model it disappears from sheet 1. This in turns removes the item from sheet 2 but leaves the location where it is.
What I need it to do is delete the entire row of data from sheet 2 if the product is no longer on the report on sheet 1.

Currently when the product disappears it moves all the cells below that product up to fill the void, meaning a product in cell B4 that was located in area 01 in the shop will move up to B3, but the location wont move with it.

I will put a couple of before and after examples below.

Sheet 2 - Shows initial page with stock and locations
ABC
1ProductLocation
2Fridge 101
3Fridge 202
4Fridge 303
5Fridge 404
6

<tbody>
</tbody>

Lets say that Fridge 2 gets sold so is no longer showing on the report list. Sheet 2 ends up looking like this:

ABC
1ProductLocation
2Fridge 101
3Fridge 302
4Fridge 403
504
6

<tbody>
</tbody>

What I want it to look like:

ABC
1ProductLocation
2Fridge 101
3Fridge 303
4Fridge 404
5
6

<tbody>
</tbody>


I hope this makes sense. Any assistance would be greatly appreciated as I have searched the net for days trying to get it sorted.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi all. I have been thinking constantly about this and think I know what needs to be done, however I have no idea how to do it.
What I think needs to happen is when Sheet 1 updates each day, a code of some sort needs to check if the information in column B sheet 2 is still on sheet 1 column D. If the data is missing from sheet 1 it deletes the relevant row on Sheet 2.
In my head it makes sense, hope it makes sense when you read it...

Thanks again for any help on this matter
 
Upvote 0

Forum statistics

Threads
1,215,756
Messages
6,126,692
Members
449,330
Latest member
ThatGuyCap

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