+ Reply to Thread
Results 1 to 3 of 3

Thread: Need vba code/formula

  1. #1
    Registered User
    Join Date
    12-10-2011
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    32

    Need vba code/formula

    Hi All,

    I have two columns Item in column A and Price in Column B. Item in column A gets repeated and i want a vba code/formula in column C which sums the price in column B

    Please refer the attachments for more info
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    239

    Re: Need vba code/formula

    Hello
    Copy the following formula down column C. This should do what you're looking for.

    =SUMIF($A$2:$A$6,A2,$B$2:$B$6)

  3. #3
    Registered User
    Join Date
    12-10-2011
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Need vba code/formula

    Quote Originally Posted by DBY View Post
    Hello
    Copy the following formula down column C. This should do what you're looking for.

    =SUMIF($A$2:$A$6,A2,$B$2:$B$6)

    Awesome...Thanks a lot..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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