+ Reply to Thread
Results 1 to 6 of 6

Calculate the results of a formula in different cells

  1. #1
    Registered User
    Join Date
    05-01-2014
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Calculate the results of a formula in different cells

    Hi All,

    What I'm trying to do, is calculate the different invoice amounts, based on account codes, into different cells. For example; Column F is the invoice amounts. Column H is the account codes. If the invoice amounts in F4:F50 match Account 5 then enter this into J4. If the invoice amounts in F4:F50 match Account 6, then enter this amount into J5.

    What I tried in cell J4 was: =IF(isnumber(Match(5,Sum(F4:F50,0))) No Luck with that

    Then I tried in Cell J4: =IF(H4:H50=5,Sum(F4:F50),"") That worked but it didn't matter if it was account code 5 or not, it continued to calculate F4:F50, just like I asked it to do. I'm sure there is a way to do this but with my limited excel knowledge, I can't figure it out.

    Thank you for any help

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate the results of a formula in different cells

    You get better help on your question if your follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Calculate the results of a formula in different cells

    Not sure I 100% follow, but something like this?

    =sumif(F4:F50,5,H4:H50)
    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.

  4. #4
    Registered User
    Join Date
    05-01-2014
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Calculate the results of a formula in different cells

    My apologies...I thought I had explained it pretty well...I'd have to agree with you,it would be easier to see what I'm trying to accomplish as opposed to reading what I want to do
    Attached Files Attached Files

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Calculate the results of a formula in different cells

    Quote Originally Posted by JEA1179 View Post
    Then I tried in Cell J4: =IF(H4:H50=5,Sum(F4:F50),"") That worked but it didn't matter if it was account code 5 or not, it continued to calculate F4:F50, just like I asked it to do. I'm sure there is a way to do this but with my limited excel knowledge, I can't figure it out.
    As an array formula (confirm with CTRL+SHIFT+ENTER, not just ENTER),
    Please Login or Register  to view this content.
    So you need to nest the IF inside the SUM, not the other way around.

    ...of course, instead of that, I think a SUMIF like speshul suggested is better.

  6. #6
    Registered User
    Join Date
    05-01-2014
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Calculate the results of a formula in different cells

    Speshul and ben_hensel Thanks for the help...

+ 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. Replies: 8
    Last Post: 12-23-2013, 08:42 PM
  2. Replies: 2
    Last Post: 10-01-2013, 04:35 PM
  3. Save calculated results in cells not thge formulas used to calculate them
    By maineiac4ever in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-29-2012, 12:31 AM
  4. Formula to Calculate criteria and sum results in cell
    By Foreverlearning in forum Excel General
    Replies: 4
    Last Post: 02-08-2012, 05:16 AM
  5. Formula Help to Calculate Quarterly Results
    By Paul Sheppard in forum Excel General
    Replies: 4
    Last Post: 07-25-2006, 01:23 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