+ Reply to Thread
Results 1 to 3 of 3

Add one cell based on a value of another

  1. #1
    Registered User
    Join Date
    10-07-2014
    Location
    Telford
    MS-Off Ver
    2013
    Posts
    1

    Add one cell based on a value of another

    Hi,

    Hopefully a very easy query somebody can help me with.

    I have a spreadsheet whereby the sale of an item is listed in row order, one column lists the sale price and in another column I have a sale date.

    What formula can I use which will scan each column and add the total values of sales conducted in a specific year (not interested in value of specific items, just yearly totals of sales).

    Thanks in advance for any help.

    Regards Paul

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Add one cell based on a value of another

    Have a look at SUMIF or SUMIFS.

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Add one cell based on a value of another

    =sumif(range_with_date,year(range_with_date)=2014,range_with_values)

    So it will look like

    =SUMIF(A2:A500,YEAR(A2:A500)=2014,B2:B500)

    This assumes there are 500 rows of data and the Dates are in Column A, and the Values to be added are in Column B
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

+ 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. Delete row based on cell FORMAT (color, font, etc) (not based on cell value)
    By trobey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2012, 10:39 AM
  2. Filter multiple pivot tables based on same cell value (OLAP based)
    By natsuki-hime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2012, 05:21 AM
  3. Copying specific cell based on two parameters and then sorting based on one parameter
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 02:27 AM
  4. Create 2 Totals, One Based On Name And One Based On Name And Cell Fill Color
    By PIPPIBOOKS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2008, 04:41 PM
  5. Hiding Rows Based based upon cell value being blank
    By leelee23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2007, 04:48 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