If statement

mbuk320000

New Member
Joined
Jan 12, 2021
Messages
4
Office Version
  1. 365
  2. 2019
  3. 2013
  4. 2011
  5. 2010
  6. 2007
Platform
  1. Windows
  2. MacOS
hi all im looking for a formular /vba code to complete the following

=AVERAGEIFS('Stock OUT'!$A$2:$A$3400,'Stock OUT'!$E$2:$E$3400,$E128,G128,V1)

Stock Out colum A is a date feiled
Coulm b is a number that maches Colum E but i only want this avg to be caculated if g128 = v1

hope that make sence
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi probably something like the below. You may need to change the cell absolution:

=IF($G128=$V$1,AVERAGEIFS('Stock OUT'!$A$2:$A$3400,'Stock OUT'!$E$2:$E$3400,$E128),"Something Else")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,567
Messages
6,120,268
Members
448,953
Latest member
Dutchie_1

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