+ Reply to Thread
Results 1 to 6 of 6

Formula is giving a 0 answer, why???

  1. #1
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Formula is giving a 0 answer, why???

    Getting tired of typing out the full word and want to make sure the full word is spelled the same every time.

    On sheet 1 (Bills) I have

    A____B
    Code Description
    B01 Rent
    B02 Power
    B03 Cable

    on Sheets 2-13 (Paid, Jan - Dec) I have

    A____C
    Code Description

    I tried on sheet Jan =IF(ISBLANK(A3),"",SUMIF(Bills!A2:A27,"="&Jan!A3,Bills!B2:B26))
    but it comes back with 0 instead of Rent, Power, Cable why???

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula is giving a 0 answer, why???

    A bit of a guess, since you didn't attach an Excel sheet; but is this close?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Re: Formula is giving a 0 answer, why???

    OK thanks Glenn so I us match instead of sum thanks looks good

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula is giving a 0 answer, why???

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula is giving a 0 answer, why???

    =IF(ISBLANK(A3),"",SUMIF(Bills!$A$2:$A$27,$A3,Bills!$B$2:$B$26))

    On sheet 1 (Bills) I have
    A____B
    Code Description
    B01 Rent
    B02 Power
    B03 Cable
    there is no numbers in either columns, how you will get result, attach sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Re: Formula is giving a 0 answer, why???

    When I transferred it into my book I had to make a small change

    had to change the = after IF(A2="," to IF(A2<>"," and it works perfect thanks again glenn

    this is the final formula I end up using

    =IF(ISBLANK(A2),"",IF(A2<>",",INDEX(Bills!$B$2:$B$26,MATCH('Jan01'!$A2,Bills!$A$2:$A$26,0))))

+ 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] SUMPRODUCT giving me different answer
    By coach.32 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-09-2013, 06:05 AM
  2. [SOLVED] SUMIF not giving me the correct answer
    By Cathy Brausa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2012, 02:05 AM
  3. sum formula giving a cell reference in the answer
    By stanadon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2012, 06:29 AM
  4. Mulitiplying in formula giving incorrect answer
    By oxicottin in forum Excel General
    Replies: 3
    Last Post: 12-20-2009, 10:00 PM
  5. Formula giving incorrect answer...
    By Jambruins in forum Excel General
    Replies: 3
    Last Post: 02-25-2005, 03:06 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