+ Reply to Thread
Results 1 to 4 of 4

calculate values of another cell based on value from one cell

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Lahore
    MS-Off Ver
    Excel 2013
    Posts
    2

    calculate values of another cell based on value from one cell

    Hi All,

    I have an excel sheet in which I have 3 columns, Column A is giving me a week number from date entered in Column B. Column A is a merged Cell.
    There are values in Column C.

    I want to be able to sum cells of column C ( not entire Column, select few cells) who show 1 (representing Week number) against them in Column A. I have been trying to sort this out since Thursday and have had no success.

    Please see attached example , Any help will be greatly appreciated.

    Salman
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: calculate values of another cell based on value from one cell

    I would strongly urge you to get rid of the merged cells (they actually cause more problems than they solve).
    Have just 1 row for each incident
    Then a simple sumif works just fine

    =SUMIF(A2:A67,1,C2:C41)

    EFsalman.xlsx

  3. #3
    Registered User
    Join Date
    12-30-2013
    Location
    Lahore
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: calculate values of another cell based on value from one cell

    Hi Jon,

    Thank you so much, for taking out time and helping, this works perfectly. I wanted to use Merged cells based on eye candy factor, however i will keep it in my mind to work around them

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: calculate values of another cell based on value from one cell

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] Calculate row sum based on letters representing values in each cell
    By antmer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-03-2013, 05:27 AM
  2. Replies: 2
    Last Post: 05-24-2010, 10:13 AM
  3. Replies: 9
    Last Post: 03-23-2010, 02:07 PM
  4. VBA code to calculate cell contents based on another cell value?
    By stroberaver in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2010, 05:53 PM
  5. Calculate range based on cell values
    By jongleurjon in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-09-2009, 07:21 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