+ Reply to Thread
Results 1 to 9 of 9

IF & SUMIF Formula problem

Hybrid View

  1. #1
    Registered User
    Join Date
    12-22-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Exclamation IF & SUMIF Formula problem

    I am trying to create a sheet to track credits that have been given out. Basicaly what I have is 2 sheets 1 the employees update and 1 that gives me totals based on markets and department. I have it working for the most part but the problem I have is when I use the folowing formula:

    =IF(Budget!I8=market1,SUMIF(dept,service,amount))
    It works perferctly but that only adds the one row with I8 cell and nothing else on the employee sheet. If i change it to:

    =IF(market=market1,SUMIF(dept,service,amount))
    I get a #VALUE error. I want to get info from the entire column not just one cell. Can anyone help me with this?

    I attached a copy of my file aswell. I'm also using excel 2003

    Thanks in advance
    Attached Files Attached Files
    Last edited by Elite311; 12-22-2009 at 02:13 AM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: IF & SUMIF Formula problem

    Hi Elite311,

    Welcome to the forum!

    You'll need to correct your named range "amount" to:

    =Budget!$H$8:$H$4000

    then use this formula in cell Totals!C6:

    
    =SUMPRODUCT(--(market=$A6),--(dept=C$4),amount)
    Autofill it to C6:D19

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    12-22-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: IF & SUMIF Formula problem

    Thafor the help man, but i'm still having trouble I did what you said and it works great but when i auto fill all the other cells turn to the #VALUE error

    I correct the named range but it's different on every cell i click on on the totals sheet not sure why? and when I change it to 4000 on that cell it works and the others goto an error

    Am I missing something?

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: IF & SUMIF Formula problem

    Did you also get the "$" sign?

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: IF & SUMIF Formula problem

    Here's the copy I was playing with:
    Last edited by ConneXionLost; 01-03-2010 at 03:00 PM.

  6. #6
    Registered User
    Join Date
    12-22-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: IF & SUMIF Formula problem

    Ya it looks like you said, I see what you are doing with that formula just not understanding why the 4000 is making a difference? I'm totally missing something here I just dont see it.

    All the values are #VALUE

    Heres what my xls looks like now after I updated it

    Thanks for the help I really appreciate it
    Attached Files Attached Files

  7. #7
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: IF & SUMIF Formula problem

    Yup. In the defined name "amount" you have the formula:

    =Budget!$H$8:$H4000

    but you're missing the "$" sign in front of the 4000.

    Try it like this:

    =Budget!$H$8:$H$4000

    Cheers,

+ 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.6.0 RC 1