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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
3
Item
Nov
Dec
Jan
Feb
Mar
M3
FX
4
5
1
3
2
CD
3
4
3
3
3

<tbody>
</tbody>

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,214,548
Messages
6,120,141
Members
448,948
Latest member
spamiki

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