Record value automatically in next empty cell on another sheet with vba

Jefersen

New Member
Joined
Sep 2, 2022
Messages
6
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi experts,
I'm trying to buid an administration sheet for a rental company and this is the last feature I want to put in.
The workbook consist of 2 sheets. One with costumers and the other one with products. I want Excel to record behind the name of each costumer the product they rent each time.

I think this can be done with vba.
The code have to look up the name of the costumer on sheet "product" and return the name of the product he have rented behind his name on the other sheet. When the costumer returns the product I want to keep the record of what they have rented in the past. So the next time the name of the costumer is mentioned, the product he rents must be recorded behind the first product and so on.
I've uploaded an example. In the example, the name of the product must come automatically in cell E5.

If this can be done without vba is also oke for me.

Thanks alot in advance :)
 

Attachments

  • Schermafbeelding 2022-09-02 172547.jpg
    Schermafbeelding 2022-09-02 172547.jpg
    51 KB · Views: 10
  • Schermafbeelding 2022-09-02 172632.jpg
    Schermafbeelding 2022-09-02 172632.jpg
    54.4 KB · Views: 10

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,214,787
Messages
6,121,561
Members
449,038
Latest member
Guest1337

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