If cells are blank leave blank if not average the range

Mtommo

New Member
Joined
Jan 3, 2023
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hi,
I have a table with 3 columns 1st is Qty, 2nd is Time, 3rd is average.
when i enter data in columns 1 & 2, (qty 500 & Time 6:45) column 3 gives me the average of 74.07.
I need a formula to say "if Column 2 (Time), cells B3:B3 is blank leave blank, if any data in Column 3, C3:C31 then average cells in column 3 C3:C31)"

see attachment

cheers
Mike

1672747446048.png
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
not sure i'm following what you need , other members may help
you mention 3 columns and show 5

you then give a different example
(qty 500 & Time 6:45) column 3 gives me the average of 74.07.
how do you get an average of 74.07 ???

cells B3:B3 is blank leave blank,
I assume you mean B3:B31 - so if any are blank - then result is blank
if any data in Column 3, C3:C31 then average cells in column 3 C3:C31)"
BUT not if any cells in B3:B31 are blank ....

Or do you want the average of whatever is in C3:C31 - BUT only if the corresponding cell B3:B31 is NOT blank

=Averageifs()

BUT as i say not sure what you want -
and you are showing TIME in 5th column - so average of the time - does the time also include a date - format using DD/MM/YY HH:MM

Book12
ABCDE
1
23
3X2
43
5X4
65
7
8
9
Sheet1
Cell Formulas
RangeFormula
E2E2=AVERAGEIFS(C3:C31,B3:B31,"<>")
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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