+ Reply to Thread
Results 1 to 4 of 4

Conditional formula help

  1. #1
    Registered User
    Join Date
    07-17-2015
    Location
    Windsor, Ontario
    MS-Off Ver
    Office 2013
    Posts
    2

    Conditional formula help

    Hi there ... I'm trying to create a budget sheet (even though there are millions of templates out there :D) and can't seem to figure out how to make this work. It should be quite simple for some experts in this forum, so here goes:

    I have Expenses in A1, A2, A3 ... all the way to A12. I have a set budget number in B2 ... A12. From C2 - C12, I have the actual amount expensed.

    Starting at A20 to A300, I will be listing the expense (e.g. car payment, insurance payment etc.), and in C20 to C300 I will be including the amount expended.

    Basically, what I want is in cells C2 to C12 to pull the value from C20 to C300 based on the text value in A20 to A300. So for example, under A2 I have car payment. I would like to enter a formula in C2 that says "if any cell from A20 to A300 equals "car payment", then C2 will equal the corresponding same C row from C20 to C300" Does that make sense? It does in my head hahaha

    So I've got up to this point =IF(ISNUMBER(MATCH("car payment",$A$20:$A$300,0)),[I DON'T KNOW WHAT GOES HERE],0)

    Help would be greatly appreciated, thank you!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Conditional formula help

    =sumif(A20:A300,"car payment",C20:C300)

    OR

    =SUMPRODUCT((A20:A300="car payment")*(C20:C300))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    07-17-2015
    Location
    Windsor, Ontario
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Conditional formula help

    Quote Originally Posted by daffodil11 View Post
    =sumif(A20:A300,"car payment",C20:C300)

    OR

    =SUMPRODUCT((A20:A300="car payment")*(C20:C300))
    Thanks! I used the first one.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Conditional formula help

    There's also SUMIFS, where the parameters are SUMIFS(sum what, criteria range1, criteria1, range2, crit, etc)

    SUMIFS can sum A where B = x, C = y, D = z, E = red, etc.

+ 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. formula help - conditional format to colour cell = count = formula
    By rangeruk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2015, 09:03 PM
  2. Need help with conditional formula
    By mmccan11977 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2014, 09:35 PM
  3. Replies: 3
    Last Post: 11-28-2013, 02:11 AM
  4. Replies: 15
    Last Post: 04-10-2012, 07:30 AM
  5. Changing conditional average formula to conditional sumproduct
    By chlor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2007, 11:39 AM
  6. [SOLVED] Conditional Formula to indicate Formula in cell
    By SteveW in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 08-01-2006, 08:15 PM
  7. Replies: 6
    Last Post: 03-12-2006, 06:30 PM

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