Excel lookup macrofor dividend

Posted on 2011-05-05
Last Modified: 2012-06-21
Hi Experts,

Can anyone help me ?

I want create a  lookup and  divide  formula in Cell O45   .
It can  search from  Sheet   M_ITEM.DBF,the corresponding    "REF_NO"   and  " QTY PER CARTON"    columns  and divid by  CELL O36  .

Question by:candychan611
    LVL 43

    Assisted Solution

    by:Saqib Husain, Syed
    LVL 6

    Accepted Solution

    You can use VLOOKUP. E.g.

    Param desc:
    - ma!O33 = value to be looked up
    - MITEM.DBF!A1:I1857 = table in which to lookup the value
    - 9 = column number in the lookup table from which the result should be returned ("column I" in you case)
    - FALSE = when the lookup table is not sorted you use this.

    Attached updated sample. I've updated the formula in cell P46.

    Author Comment

    According to your solution  i've amended the code as follow:


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Outlook import PST file missing emails 9 47
    Average across mutiple sheets 5 32
    Slide Show 5 52
    Create exported XLS from Query 19 18
    Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
    This article will show you how to use shortcut menus in the Access run-time environment.
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
    This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now