Mearge 2 formulas

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
Hi

How can I merge 2 formulas in 1



=average(offset(au4,,count(au4:br4)-bs2,,bs2))
=averageif(au4:br4,">0",au4:br4)

AU3 to BR3 = Jan to Dec 2018 - 2019
BS2 3 which is month 3
 

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.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Item
[/TD]
[TD]Nov
[/TD]
[TD]Dec
[/TD]
[TD]Jan
[/TD]
[TD]Feb
[/TD]
[TD]Mar
[/TD]
[TD]M3
[/TD]
[/TR]
[TR]
[TD]FX
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]3
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]CD
[/TD]
[TD]3
[/TD]
[TD]4
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[TD][/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]

Sorry for the confusion, I want to take average of last 3 months but formula is also
counting zero, I want average without zero

Please help

Formula in G3 is =average(offset(b3,,count($b3:$f3)-$g$1,,$g$1))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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