Need formula to get Average value main sheet to summmary sheet using if, vlookup and average formula

PK1988

New Member
Joined
Jul 29, 2023
Messages
5
Office Version
  1. 2010
Platform
  1. Windows
Hi All,
Need your help
I have a transport master file with all datas and I need to pull the average spend value for specific lanes in another sheet.
Here check point would be lane name to be matched in both the sheet and also its need to calculate the average value based on the status column "consider".
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Welcome to the MrExcel board!

We have no idea how your workbook is set out or what your data is like so it is fairly unlikely that anybody will bee able to offer anything of much use.
Could you give us a small but representative set of sample data, include the expected results and explain again in relation to that?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi, thanks for your message.
Below is the example: Need Formula to get Average value from the Raw data to summary sheet.
The formula should consider the location as well status " consider" and pull the average value.

Raw data
Vendor NameValueStatusLocation
XXXX
431​
ConsiderApple
XXXX
443​
ConsiderApple
XXXX
888​
Not to considerApple
YYYY
320​
ConsiderOrange
YYYY
319​
ConsiderApple
YYYY
315​
ConsiderOrange
YYYY
890​
ConsiderOrange
ZZZZ
270​
ConsiderLemon
ZZZZ
280​
ConsiderLemon

Summary sheet:
LocationAverage ValueComment
AppleNeed Average Value, status to be calculated for" Considered " alone
Orange
Lemon
 
Upvote 0
Thanks for the sample data and further explanation. See if this would work for you.

PK1988.xlsm
ABCD
1Vendor NameValueStatusLocation
2XXXX431ConsiderApple
3XXXX443ConsiderApple
4XXXX888Not to considerApple
5YYYY320ConsiderOrange
6YYYY319ConsiderApple
7YYYY315ConsiderOrange
8YYYY890ConsiderOrange
9ZZZZ270ConsiderLemon
10ZZZZ280ConsiderLemon
Raw data


PK1988.xlsm
AB
1LocationAverage Value
2Apple397.6666667
3Orange508.3333333
4Lemon275
Summary
Cell Formulas
RangeFormula
B2:B4B2=AVERAGEIFS('Raw data'!B$2:B$10,'Raw data'!D$2:D$10,A2,'Raw data'!C$2:C$10,"Consider")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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