+ Reply to Thread
Results 1 to 6 of 6

Need help with excel formula return 0 value eventhough formula should be right.

  1. #1
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Need help with excel formula return 0 value eventhough formula should be right.

    Hey everyone,

    A while ago I posted a question on this forum to receive a formula that would automatically put data from my excel journal entries into the right ledger.
    This formula has worked flawless for me over the past few months, in several excel files.
    Unfortunately when i tried to make a new accountancy sheet today, the formula did not work entirely correct somehow.

    The formula mentioned is:
    =IFERROR(INDEX('Journal Entries'!$A$3:$A$5000;AGGREGATE(15;6;(ROW($3:$5000)-1)/('Journal Entries'!$B$3:$B$5000=B$2);ROW(1:1)));"")

    To explain the formula:
    Copy (Journal Entries A3 to A5000) if the sell next to it (Journal entries B3 to B5000) matches cell B2.

    The formula works in all my excel files, except in my new excel file it returns the answer "0" eventhough it should copy the data from that particular cell.
    Another weird issue, is that i have tried to use the formula in an excel sheet in which the formula works, only changing the name of the worksheet, and it sill gives me a 0 value.

    So basically:

    The formula works in the sence that it copies the value in cell A3 to A5000 if the value in cell B3 to B5000 matches B2, but instead of copying the value it shows a 0 value.

    I have "Allow Iritated Cells" checked.

    Could anyone help me with the issue please?

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Need help with excel formula return 0 value eventhough formula should be right.

    This is an array formula isnt it?

    =IFERROR(INDEX('Journal Entries'!$A$3:$A$5000;AGGREGATE(15;6;(ROW($3:$5000)-1)/('Journal Entries'!$B$3:$B$5000=B$2);ROW(1:1)));"")

    Enter it as an array formula ans see if that works
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Re: Need help with excel formula return 0 value eventhough formula should be right.

    Hi Special-K, thank you for your reply.

    I have tried entering it as an array formula. (CTRL + Shift + Enter, right?)
    But unfortunately it still doesn't work.

    Any other advice?

    Kind regards

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Need help with excel formula return 0 value eventhough formula should be right.

    If your target source data starts in row A3 try this.
    =IFERROR(INDEX('Journal Entries'!$A$3:$A$5000;AGGREGATE(15;6;(ROW($3:$5000)-ROW($3:$3)+1)/('Journal Entries'!$B$3:$B$5000=B$2);ROW(1:1)));"")You may not have to array enter this.
    Dave

  5. #5
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Re: Need help with excel formula return 0 value eventhough formula should be right.

    Thank you for your reply FlameRetired,

    Unfortunately this also doesn't work.

    A new weird thing that happend. Yesterday i restarted my pc and open this excel file, and suddenly the formula was showing the right answer.
    Than, as i copied the formula to the other cells, they showed me a 0 value again.

    This is super strange.

    Any advice anyone?

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Need help with excel formula return 0 value eventhough formula should be right.

    Check to see if Calculations are set to Manual. If so change to Automatic ... Formulas >> Calculation Options.

    If that is not the case try uploading the workbook in question. I think we are going to need some context.

    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.

+ 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: 1
    Last Post: 01-26-2015, 07:52 AM
  2. Replies: 3
    Last Post: 01-28-2014, 03:10 PM
  3. If formula not working eventhough the cell formats are proper
    By nagendrababu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2013, 08:20 AM
  4. [SOLVED] Loop Code skips rows eventhough it shouldn't
    By questionguy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2012, 08:58 AM
  5. [SOLVED] EXCEL FORMULA RETURN X IF VALUE IN 4 CELLS HAS VALUE
    By RERAA in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. EXCEL FORMULA RETURN X IF VALUE IN 4 CELLS HAS VALUE
    By RERAA in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  7. EXCEL FORMULA RETURN X IF VALUE IN 4 CELLS HAS VALUE
    By David Billigmeier in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 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