How can I use IFERROR with the following formula?
=((C2)+(D2*1)+(E2*2)+(F2*3)+(G2*4)+(H2*5)+(I2*6)+(J2*7)+(K2*8)+(L2*9))/N2
How can I use IFERROR with the following formula?
=((C2)+(D2*1)+(E2*2)+(F2*3)+(G2*4)+(H2*5)+(I2*6)+(J2*7)+(K2*8)+(L2*9))/N2
Last edited by kenjcd; 04-21-2019 at 05:12 AM.
I think you mean this:
=((C2)+(D2)+IFERROR((E2*2),0)+IFERROR((F2*3),0)+IFERROR((G2*4),0)+IFERROR((H2*5),0)+IFERROR((I2*6),0)+IFERROR((J2*7),0)+IFERROR((K2*8),0)+IFERROR((L2*9),0))/N2
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
The only reason for an error in that formula is if N2 is zero.
So you could just use:Formula:Please Login or Register to view this content.
If you do want IFERROR, then:Formula: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
me likes
=iferror(sumproduct(c2:l2*(row(a1:a10)-1))/n2,0)
You're welcome. Thanks for the rep.
@Ali: your solution would fail if N2 = 0; the IFERROR woud need to be round the whole formula.
@Pepe: your formula looks neat but it doesn't appear to work. Am I missing something?
@kenjcd: you can lose all the "internal" brackets in both solutions. For exampleandFormula:Please Login or Register to view this content.although you might find it more readable if you retain the brackets ... though it is shorterFormula:Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks