VBA code to insert row if value not found in some range

davglav93

New Member
Joined
Feb 13, 2020
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Hi as you can see on the picture I have 3 tables with dropdown menu and one final where weighted average is calculated, what I want is to have VBA code which would search in range of those 3 tables for names of ingredients and if ingredient not in last table (weighted average IBR.) then to add row at the end of that table. For ex. VBA code finds flavours in first 3 tables and if flavours are not in the last table then add new row named flavours at the end of last table.

Thanks in advance, I know I should have tried to code it my own but its been years since I have used VBA.
 

Attachments

  • vba.JPG
    vba.JPG
    58.7 KB · Views: 14

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
or if someone has a similar code to share when you inserted row based on if value is found in a range
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,545
Members
449,317
Latest member
chingiloum

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