Formula SUMIFS with value in different column

Lukma

Active Member
Joined
Feb 12, 2020
Messages
259
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Friend

i need an assistance with the SUMIFS, but i don't no if i get it all right, i need the zero to be blank i tries IFERROR(1/(1/SUMIFS, but each giving me pop up error message appreciate a solution with it or a better way to have the formula
Thanks

Book7.xlsx
BCDEFGHIJKLMNOPQRSTU
4May220265266.6662674.557475.3299227.3991864.057618
5Location WaterDieselJet A-1M.SpiritCaCl2NaClNAFBase OilBariteBentoniteClass"G"ExpendableFlex.StElasticemLite CreteLite DeepSilicaTuned LightNeocem
6Rig Al Yasat000000420.8571
7
8OUTVOUND OUTVOUND
9Month Date Name MUSLocation Cargo TypeQTYMonth Date Name MUSLocation Cargo TypeQTY
10May14/05/22 04:00ADNOC-2291194NAFRig Al YasatNAF784 BBLS RDF NAF784May14/05/22 04:00ADNOC-2291194NAFRig Al YasatNAF784 BBLS RDF NAF784
11May21/05/22 00:20ADNOC-2291255NAFRig Al YasatNAFRDF NAF (12.1 ppg) 773 BBLS NAF TANK# NAF- 12708921, 730247773May21/05/22 00:20ADNOC-2291255NAFRig Al YasatNAFRDF NAF (12.1 ppg) 773 BBLS NAF TANK# NAF- 12708921, 730247773
Sheet1
Cell Formulas
RangeFormula
C6:I6C6=SUMIFS($J$10:$J$11,$G$10:$G$11,$B6,$B$10:$B$11,$B$4,$F$10:$F$11,C$5)/C$4+SUMIFS($U$10:$U$11,$R$10:$R$11,$B6,$M$10:$M$11,$B$4,$S$10:$S$11,C$5)/C$4
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
this may help
=IF(SUMIFS($J$10:$J$11,$G$10:$G$11,$B6,$B$10:$B$11,$B$4,$F$10:$F$11,C$5)/C$4+SUMIFS($U$10:$U$11,$R$10:$R$11,$B6,$M$10:$M$11,$B$4,$S$10:$S$11,C$5)/C$4=0,"",SUMIFS($J$10:$J$11,$G$10:$G$11,$B6,$B$10:$B$11,$B$4,$F$10:$F$11,C$5)/C$4+SUMIFS($U$10:$U$11,$R$10:$R$11,$B6,$M$10:$M$11,$B$4,$S$10:$S$11,C$5)/C$4)

maybe otherways - but that was the first i thought of

you can set up excel to NOT show zeros - but this would apply to the entire sheet and may not be what you want

you could use conditional formating , so the zero font is white and then blends in with the fill white colour and so cannot be seen - but will still be a zero - if tested by another formula
 
Upvote 0
Another option is to keep your original formula and format those formula cells with the custom format: General;General;;

22 05 30.xlsm
BCDEFGHIJ
5Location WaterDieselJet A-1M.SpiritCaCl2NaClNAFBase Oil
6Rig Al Yasat      420.857105
Custom Format
Cell Formulas
RangeFormula
C6:I6C6=SUMIFS($J$10:$J$11,$G$10:$G$11,$B6,$B$10:$B$11,$B$4,$F$10:$F$11,C$5)/C$4+SUMIFS($U$10:$U$11,$R$10:$R$11,$B6,$M$10:$M$11,$B$4,$S$10:$S$11,C$5)/C$4
 
Upvote 0
Solution

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top