+ Reply to Thread
Results 1 to 7 of 7

Help - Returning errors - want them to still add up or add as 0 if no data there

  1. #1
    Registered User
    Join Date
    01-20-2023
    Location
    Liverpool, England
    MS-Off Ver
    2212
    Posts
    13

    Help - Returning errors - want them to still add up or add as 0 if no data there

    Good afternoon all,

    I'm working on a cash flow, but for a lot more tabs than attached, but just set it to a few tabs. The tabs are fine but it's the consolidated tab I am having issues with.

    I'm using a match formula to look up and return the totals of all the tabs for each line description under the corresponding month and return these values across all the tabs in the consolidated.

    My issue is:

    For example: Rent Income (this only applies to one of the tabs - Property). This line is in consolidated, and I've just copied down the formula to search ALL tabs for this information (I want it so that if this information isn't found, to return this as 0 so that it will still add up to any that are found).

    I tried the IFERROR(sum(such and such),0) for each tab but it's not working. I can't put the if error at the very beginning and end of the whole formula as it returns 0 when there is information in one of the tabs.

    I hope I'm making sense.

    So really, I want "Rent Income" in consolidated tab on cell B19 to search ALL tabs (even though not all will have rent income listed), and it should return the one it finds as £1671.70.

    Then I can always just drag formula down when adding additional lines with ease going forward if need be.

    Thanks in advance!

    UPDATE: Solved - Attachment now removed
    Last edited by LeapyUK; 04-19-2024 at 11:07 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Help - Returning errors - want them to still add up or add as 0 if no data there

    Assuming your Excel version is a 365 subscription, then try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-20-2023
    Location
    Liverpool, England
    MS-Off Ver
    2212
    Posts
    13

    Re: Help - Returning errors - want them to still add up or add as 0 if no data there

    Thanks for your response.

    I want the formula to search all tabs rather than confine them to search a specific tab only otherwise I can't just drag down the formula in consolidated if new lines are added within other tabs - it will save a lot more time.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Help - Returning errors - want them to still add up or add as 0 if no data there

    Look at the formula. It stacks all the available worksheets. I can't guess at what sheets you have excluded, but you just need to change the 3 to reflect the last sheet in your workbook.

  5. #5
    Registered User
    Join Date
    01-20-2023
    Location
    Liverpool, England
    MS-Off Ver
    2212
    Posts
    13

    Re: Help - Returning errors - want them to still add up or add as 0 if no data there

    Hello,

    Thanks for this, this works. I've added this to my main sheet and also the example.

    Is there a way I can have this in the formula look at the Text of Rent Income in cell A19 in consolidated, rather than typing in "Rent Income" in the formula itself so if I was to drag this formula down in consolidated, it would look for that line of text?

    Also, when dragging this across - how do I have this to look up the month in the tabs as they progress, as I have dragged the formula and it's come up #CALC! - May 24 I've typed in £45, and June £14 to try and get this to pull through on consolidated.

    Thanks in advance
    Last edited by LeapyUK; 04-19-2024 at 11:06 AM.

  6. #6
    Registered User
    Join Date
    01-20-2023
    Location
    Liverpool, England
    MS-Off Ver
    2212
    Posts
    13

    Re: Help - Returning errors - want them to still add up or add as 0 if no data there

    Hello, I've found the way for this now - thanks for your help it's really helped

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Help - Returning errors - want them to still add up or add as 0 if no data there

    You're welcome.

    Glad you worked it out.



    You may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] UDF is returning #VALUE! errors
    By tuph in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2014, 01:36 AM
  2. [SOLVED] Averageifs returning DIV/0 errors even though there are values
    By lifeseeker1019 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2013, 02:19 AM
  3. [SOLVED] Width of Data Valadation List Box returning VB Errors
    By Cdavies in forum Excel General
    Replies: 2
    Last Post: 12-09-2013, 03:48 PM
  4. Using fx MIN without returning errors
    By SpreadtheSheet in forum Excel General
    Replies: 2
    Last Post: 11-05-2012, 01:17 PM
  5. [SOLVED] Multiple IFs returning errors
    By matthewread88 in forum Excel General
    Replies: 5
    Last Post: 07-18-2012, 12:37 PM
  6. Vlookup returning errors
    By Buzzby in forum Excel General
    Replies: 1
    Last Post: 07-02-2010, 11:04 AM
  7. Returning custom errors from UDFs
    By Dave in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-04-2005, 09: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