Results 1 to 2 of 2

VBA code that will extract data from two databases and will revert a single value

Threaded View

  1. #1
    Registered User
    Join Date
    03-10-2018
    Location
    Derby
    MS-Off Ver
    2016
    Posts
    1

    VBA code that will extract data from two databases and will revert a single value

    Hi,
    I need an VBA code that will do the following:
    - search from Database 2 for all products, based on the 6 digits code from the products title (line 1), in Database 1.
    - if the product (based on the 6 digits code) exists in Database 1, and if "Cal" column equal "15" - should multiply his corresponding value from Database 2, line 2 (Sales) with his Price (column C) from database 1, and afterwards do their sum, which will be divided to the sum of their Prices. The result should be showed in percentage.

    The result should be: 14,67%
    Thank you!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code for UserForm1 not working - won't revert to single cell
    By Gossamerga in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2015, 11:35 AM
  2. Replies: 3
    Last Post: 12-18-2014, 10:27 AM
  3. [SOLVED] Extract single cell data based on a single cell entry
    By farmerdoode in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 11:11 PM
  4. [SOLVED] Extract State Code from Single Cell
    By maacmaac in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-11-2013, 10:14 AM
  5. [SOLVED] Extract Zip Code from the address in a single cell
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 11:29 AM
  6. [SOLVED] GetMatch plus VBA Code to Extract Matched Numbers from 2 Single Cells
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-18-2013, 05:08 PM
  7. Replies: 6
    Last Post: 02-06-2005, 10:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1