Auto copy entire row, possibly using IF function

mcbogel

New Member
Joined
Aug 10, 2014
Messages
8
Hi

I am stuck with a little problem. I have a window cleaning business and am trying to get excel to automate my routes.

What I have now:

Tab1 (Sheet:Costumers)
ABCDEFGHIJKLMNOPQ
1#StreetnameStreet#TownZip codeNamePhone1Phone2Total PricePer monthText to be shown on costumers bill1Price1Text to be shown on costumers bill2Price2NotesFrequencyWeek
21Fake Boulevard109Imagination city71906Henry von Luftballoon555-564-658$20$20Window cleaning$201 month1, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50
32Easy Street112Squaresville98621Karen Berg555-654-235$50$25Window cleaning$502 months1, 10, 20, 30, 40, 50
43Evergreen Terrace742SpringfieldN/AHomer Simpson555-651-687$110$110Window cleaning$25Removing spiderwebs$851 month1, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50

<tbody>
</tbody>

<tbody>
</tbody>
At the moment I find my routes by using the filter function. I choose what week I am currently in and I receive a list.




What I want:

Tab1 (Sheet:Costumers)
Tab2 (Sheet:January (week1-5))
Tab3 (Sheet:February(week6-9))
Tab4 (Sheet:March (week10-14))
etc. etc. until I have 12 months and 52 weeks.


I want to enter my costumers information into the "Costumers" sheet and have them automatically transfer to the month tab in which they belong.


My attempt at this have been to use the IF, ISNUMBER and SEARCH function.

I have used this funtion: =IF(ISNUMBER(SEARCH(1,R2)), "1", IF(ISNUMBER(SEARCH(2,R2)), "2", IF(ISNUMBER(SEARCH(3,R2)), "3", IF(ISNUMBER(SEARCH(4,R2)), "4", "error"))))


What I want the function to do:

Tab2 (Sheet:January (week1-5))
=IF(ISNUMBER(SEARCH(1,R2)), [copy Tab1 (Sheet:Costumers) row1 and paste it into Tab2 (Sheet:January (week1-5)) row1] , IF(ISNUMBER(SEARCH(2,R2)), [copy Tab1 (Sheet:Costumers) row1 and paste it into Tab2 (Sheet:January (week1-5)) row1], IF(ISNUMBER(SEARCH(3,R2)), [copy Tab1 (Sheet:Costumers) row1 and paste it into Tab2 (Sheet:January (week1-5)) row1], IF(ISNUMBER(SEARCH(4,R2)), [copy Tab1 (Sheet:Costumers) row1 and paste it into Tab2 (Sheet:January (week1-5)) row1], "error"))))

Is this possible to do this using just functions or do I need to use VBA?


Thanks in advance for the help. If I haven't explained my request well enough please let me know.

Daniel
 
Last edited:

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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