Automatically take rows from one sheet to various anothers based on 2 criteria

ColletteLuffman

New Member
Joined
Jul 14, 2019
Messages
9
HI
This is my first post so please be gentle. I am not great with VB so might need some hand holding

I have a spreadsheet will lots of columns (about 30) and 2000 rows


I would like to use this spreadsheet to populate multiple other sheets but keep the data in the master sheet.

Each time we add a new row to the master the row of data needs to be moved to 1 or multiple sheets depending on criteria.

List of fields below

DateContract No
Type

<tbody>
</tbody>
Customer NamePost CodeSite PostcodeContract (Old or New)Date of last Service visit to siteStart DateRenewal DateEnd DateReferencePayment Type Contract StatusBandFrequency of ServiceFrequency of Service2Preferred Service Month (1)Preferred Service Month (2)Preferred Service Month (3)Preferred Service Month (4)No. Of Pieces Of EquipmentPayment OptionValue Per VisitAnnual Service ValueContract Type Last Service DateLast Service Invoice DateLast Service Invoice amountNext Action

<tbody>
</tbody>

eg The new row is added.

If column O is Active and Column H is New then put in Active New Sheet
else If column O is Active and Column H is Old then put in Active Old Sheet
else If column O is Complete then put in Complete Sheet

Hope this makes sense

Thanks
Collette
 
Re: Automatically take rows from one sheet to various anothers based on 2 criterial

So assuming it now works.
Glad I was able to help you.
Come back here to Mr. Excel next time you need additional assistance.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Re: Automatically take rows from one sheet to various anothers based on 2 criterial

Sorry one last question

If changes are made to the row in time will the row be added again or over write the old one please?
Thanks
Collette
 
Upvote 0
Re: Automatically take rows from one sheet to various anothers based on 2 criterial

It will be added as a new row.

You must have not used the script yet or you would have seen how it works.
Have you not used it yet?
Is this not what you want?
 
Upvote 0
Re: Automatically take rows from one sheet to various anothers based on 2 criterial

Sorry not sure i made myself clear

The master sheet is always being updated. if someone were to make a change to the row in master sheet eg old to new - would it add another row to Active All or overwrite the previous written row ?

Thanks
 
Upvote 0
Re: Automatically take rows from one sheet to various anothers based on 2 criterial

It would add another row.
My question is. Why do you not run the script by entering one of those values like Old New or Complete into column O of the Master sheet and you will see how it works.
I asked have you tried this and you did not answer my question.


Sorry not sure i made myself clear

The master sheet is always being updated. if someone were to make a change to the row in master sheet eg old to new - would it add another row to Active All or overwrite the previous written row ?

Thanks
 
Upvote 0
Hi it all works just wondered if there was a way to check if the row was already in the other sheets and if it was over write with the new info rather than writing another line.
 
Upvote 0
Well that could be done if there is something on that row which is unique that could identify that row.
And this could get more complicated. If user enters Old into column O row is copied to both all sheet and Old sheet

If user then enters New in column O row is copied to New sheet and all sheet
And on and on.

I'm not understanding why user would enter old in column O and then later enter old again on same row and then maybe later enter new
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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