+ Reply to Thread
Results 1 to 6 of 6

Sum quantity and price based on first 2 characters

  1. #1
    Forum Contributor
    Join Date
    03-13-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    152

    Sum quantity and price based on first 2 characters

    Hi,

    Please see the attached file, I am looking for a macro to sum quantity and price based on the first 2 characters of available data in column B. Please help me.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Sum quantity and price based on first 2 characters


    Hi !

    As a beginner can solve this just using Excel easy formulas via SUMIF worksheet function,
    if really a code is needed (but I really can't guess why !) activate the Macro Recorder and operate manually :
    you will get your own code base ! And if you need an optimization, post this generated code here with code tags …

  3. #3
    Forum Contributor
    Join Date
    03-13-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Sum quantity and price based on first 2 characters

    Thanks Marc, please help me with SUMIF function.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Re: Sum quantity and price based on first 2 characters



    Cell J7 formula : =SUMIF($C$3:$C$444,$I7&"*",$D$3:$D$444)

    At child level just following Excel help or even directly when you write the formula with the automatic help …
    Last edited by Marc L; 07-05-2018 at 06:12 AM. Reason: typo …

  5. #5
    Forum Contributor
    Join Date
    03-13-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Sum quantity and price based on first 2 characters

    Thanks Marc.

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Sum quantity and price based on first 2 characters


    Thanks for the rep' !

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Multiple products selection with automatic price based on quantity/volume
    By murilo.costa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-30-2018, 08:39 AM
  2. How Do I Capture Which Price to Charge Based on Quantity Sold
    By EdwardSnowden in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2018, 04:06 PM
  3. [SOLVED] Setting a selling price based on cost price and order quantity
    By Steven811 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2014, 08:07 AM
  4. Replies: 5
    Last Post: 08-10-2011, 05:06 PM
  5. Searching applicable price based on various quantity
    By Umer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-25-2009, 01:48 PM
  6. Calculate price based on quantity
    By DieselNash in forum Excel General
    Replies: 5
    Last Post: 04-21-2009, 10:51 AM
  7. Summing Total Sales, Based on Quantity & Price
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:08 AM

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