+ Reply to Thread
Results 1 to 11 of 11

IFERROR on a spreadsheet for a long Formula

  1. #1
    Registered User
    Join Date
    08-16-2019
    Location
    Iowa
    MS-Off Ver
    MS Office 2017
    Posts
    6

    IFERROR on a spreadsheet for a long Formula

    Hello!

    I am new to this forum and often run Excel projects for my boss - this forum may come in handy when my Googling tips just aren't cutting it and I would be forever grateful!

    So our spreadsheet, on a weekly basis, reports the workload of our Associates - from incoming emails, phone calls, meetings, etc. From there, we count how many staff members were present for all 5 days of the work week, or if any took a single-day or full week of PTO, to 'normalize' the data.

    My boss then told me there is a formula I can use to rid the #DIV/0! portions of the spreadsheet when there is a zero in the data. I looked and found the IFERROR function, but this formula is so long, I just don't know where exactly to put it! My boss suggested I wrap in IFERROR with the formula but Excel either says it's too little, missing a parenthesis, or just doesn't make sense.

    Attached is a snippet of the table with the formula I need to wrap the IFERROR around. I can attach the spreadsheet if necessary, but figured a snippet might help since it's such a simple formula, I'm just having trouble finding where to put the IFERROR formula.

    Thank you for any help!
    Nichole
    Attached Images Attached Images

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IFERROR on a spreadsheet for a long Formula

    like this... =IFERROR(B3/((your formula)),"") should work.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    08-16-2019
    Location
    Iowa
    MS-Off Ver
    MS Office 2017
    Posts
    6

    Re: IFERROR on a spreadsheet for a long Formula

    Thank you for your help!

    Did I enter it right? I'm still getting the error as I assumed I needed to put a zero between the quotes at the end..

    Also, how do I get it to insert a 0 instead of the true?

    Attachment 637673

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IFERROR on a spreadsheet for a long Formula

    I'm getting an "invalid attachment" message trying to open your attachment.
    if the above is a "snippet" and that is what you believe is causing you errors, I put this in a cell
    =IFERROR(B3/(($N3*$N$2)+($O3*$O$2)+($P3*$P$2)+($Q3*$Q$2)+($R3*$R$2)+($S3*$S$2)),0)
    and instead of #DIV/0 I get 0, if I change it to
    =IFERROR(B3/(($N3*$N$2)+($O3*$O$2)+($P3*$P$2)+($Q3*$Q$2)+($R3*$R$2)+($S3*$S$2)),"") it returns blank.
    so there must be more to your issue and I / we can't tell from the snippet so a workbook uploaded with sample data AND expected results would be helpful.
    Go Advanced (below this quick reply window) then manage attachments part way down, then browse, upload, close and submit reply to upload a workbook.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IFERROR on a spreadsheet for a long Formula

    BTW, if you put the zero between quotes it will change the output of that snippet to text so leave the quotes out.

  6. #6
    Registered User
    Join Date
    08-16-2019
    Location
    Iowa
    MS-Off Ver
    MS Office 2017
    Posts
    6

    Re: IFERROR on a spreadsheet for a long Formula

    Hello!

    I'm still having trouble - to reflect back on the original snippet to my post, is the formula like this?

    =B3/(($N3*$N$2)+($O3*$O$2)+($P3*$P$2)+($Q3*$Q$2)+($R3*$R$2)+($S3*$S$2))=IFERROR(B3/(($N3*$N$2)+($O3*$O$2)+($P3*$P$2)+($Q3*$Q$2)+($R3*$R$2)+($S3*$S$2)),0)



    Thank you!

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IFERROR on a spreadsheet for a long Formula

    no, it would be more like this...
    =IFERROR(B3/(($N3*$N$2)+($O3*$O$2)+($P3*$P$2)+($Q3*$Q$2)+($R3*$R$2)+($S3*$S$2))=B3/(($N3*$N$2)+($O3*$O$2)+($P3*$P$2)+($Q3*$Q$2)+($R3*$R$2)+($S3*$S$2)),0)
    BUT, I'm not sure what you want to do with that formula? You are saying that if this (group of cells and formula applied) equals (the same group of cells and formula applied) otherwise return 0? Any group of cells with a formula applied will be equal to that group of cells with that formula applied.

  8. #8
    Registered User
    Join Date
    08-16-2019
    Location
    Iowa
    MS-Off Ver
    MS Office 2017
    Posts
    6

    Re: IFERROR on a spreadsheet for a long Formula

    Hi there -

    I feel terrible to cause more confusion!

    My boss wants to 'normalize' our reporting numbers so it's not in the thousands (Column K) and reflect the reporting (Columns U - AC) divided with the amount of staff that were present for all 5 days of the week or less.

    I think he wants the IFERROR formula present if there is a zero present from Columns B-J.

    I played around with the formula given in the last reply and it's getting close - just wonder how come I have the TRUE statement now?

    I've attached the spreadsheet this time

    Thank you,
    Nichole
    Attached Files Attached Files

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IFERROR on a spreadsheet for a long Formula

    Ok, N through S is giving six days. From your data how would you know in N through S that someone was missing (is that for one person or for a whole unit/dept)? What is the difference in looking at row 7 (N through S) vs row 2? Does row 7 indicate someone wasn't here but row 2 indicates all (or someone) was here for 5 days? I / we can devise an easier formula to determine if someone was here or not for those 5 (or is it 6) days if that is what you need. But that formula as I noted before makes no sense, as I wrote, it is simply does this equal itself which will always be true (unless in your case you are dividing by zero then you will get the error first, but when you correct that error you'll always get true as long as there are values in N through S and a value in B.

    Lastly, AND maybe this is the fix you need, this is what your formula should look like U3 should be and maybe this is all you need?
    =IFERROR(B3/(($N3*$N$2)+($O3*$O$2)+($P3*$P$2)+($Q3*$Q$2)+($R3*$R$2)+($S3*$S$2)),0)
    get rid of the equal to itself part.

  10. #10
    Registered User
    Join Date
    08-16-2019
    Location
    Iowa
    MS-Off Ver
    MS Office 2017
    Posts
    6

    Re: IFERROR on a spreadsheet for a long Formula

    I believe that is what I need! I think the ol'boss is making it too complicated. Hopefully I won't be back until the next confusing task and I wholeheartedly appreciate you helping to dig me out of this!

  11. #11
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: IFERROR on a spreadsheet for a long Formula

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, 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] =IF and =SUMIF formulas creating long long long data processing times.
    By comp in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 03-26-2014, 02:59 PM
  2. xlfn.IFERROR or IFERROR don't work in Excel 98-2003
    By dj_danu01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 02:53 AM
  3. [SOLVED] Long formula using IFERROR and VLOOKUP returning #NAME?
    By redimp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2013, 09:08 AM
  4. Long long formula not calc'ing all steps
    By jvautour in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2009, 10:26 AM
  5. Spreadsheet too long and too high for desktop
    By Selondoner in forum Excel General
    Replies: 1
    Last Post: 11-02-2005, 07:45 PM
  6. [SOLVED] Label x axis on very long spreadsheet
    By ah in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-21-2005, 11:05 AM
  7. Replies: 1
    Last Post: 08-18-2005, 03:05 PM

Tags for this Thread

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