Rewrite averageifs formula so it doesn't hard code criteria

polska2180

Active Member
Joined
Oct 1, 2004
Messages
384
Office Version
  1. 365
Hi I have a formula that basically does what I need it to do gives me an average based on criteria and excludes a specific name. I am not sure why I'm struggling here but instead of hard coding the name of person I want to exclude I want to simply reference a cell but every time I do that it gives me an error. How should it be wirtten?

=AVERAGEIFS('3024'!F:F,'3024'!B:B,'Route Summary'!H3,'3024'!D:D,"<>Firs Last")
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Do you mean this part here?
"<>Firs Last"

If so, you could do it like this:
"<>" & A1
for a name in cell A1

or
"<>" & A1 & " " & B1
for a name in cell A1 (first name) and B1 (last name)
 
Upvote 0
Solution
Do you mean this part here?
"<>Firs Last"

If so, you could do it like this:
"<>" & A1
for a name in cell A1

or
"<>" & A1 & " " & B1
for a name in cell A1 (first name) and B1 (last name)
Yes the first one worked ty.
 
Upvote 0
You are welcome.
Glad I was able to help.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,956
Members
449,200
Latest member
indiansth

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