+ Reply to Thread
Results 1 to 5 of 5

Thread: Multiply each one purchased units with its value and get total : by formula or macro

  1. #1
    Registered User
    Join Date
    07-04-2011
    Location
    Colombo
    MS-Off Ver
    Excel 2003
    Posts
    8

    Exclamation Multiply each one purchased units with its value and get total : by formula or macro

    Dear friends!

    I need to process some customer purchasing data;

    In store there's nearly 20 or more products and 500 or more customers. each customer purchased one or more products and sometimes they will get many of each item. So i need to a way that can get total value they need to be paid by multiplying each customer purchased units with its value and add them together.

    Anyway i'm unable to think about exel formula to do that work (got formula ; but it can't be copied to downward cells)
    and
    i'm really looking VBA Macro also

    Is there any experts
    Attached Files Attached Files
    Last edited by tldk; 01-23-2012 at 12:37 PM.

  2. #2
    Forum Guru ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    traded up
    MS-Off Ver
    2003 & 2010
    Posts
    1,905

    Re: Multiply each one purchased units with its value and get total : by formula or ma

    This formula can be copied down because of the absolute references used on the first range:

    =SUMPRODUCT($B$4:$K$4,B6:K6)
    Cheers,
    “To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln

  3. #3
    Valued Forum Contributor
    Join Date
    02-20-2007
    Location
    South Africa
    MS-Off Ver
    2007
    Posts
    488

    Re: Multiply each one purchased units with its value and get total : by formula or ma

    Hello tldk,

    Avoid Macros if you can use Formulas.

    See WorkBook attached for how the formula is changed and copied down.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Click the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Valued Forum Contributor
    Join Date
    02-20-2007
    Location
    South Africa
    MS-Off Ver
    2007
    Posts
    488

    Re: Multiply each one purchased units with its value and get total : by formula or ma

    @ ConneXionLost,

    That is even Better! I should have thought about it!!!..
    Please consider:

    Be polite. Thank those who have helped you. Click the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Registered User
    Join Date
    07-04-2011
    Location
    Colombo
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Multiply each one purchased units with its value and get total : by formula or ma

    Thank you both ConneXionLost & Winon for your help. Can you kindly let me know about they way of doing it with macro.. I'd like to learn about it also

    Anyway thank you for your help


    PS: Ah! @ ConneXionLost ; your solution is easier more than i imagine.. Thannnks..
    Last edited by tldk; 01-21-2012 at 02:00 AM. Reason: PS:

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0