Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 5
Default averageif cell doesn't contain "text"

Hello, I have some data below I want to average but only if Column B does not have "DAL". I had =averageif(b:b,<"DAL",J:J) but it doesn't like it. Any help?

Column B
CPS
CPS
CPS
DAL
GVT
DAL
MRY
DAL



Column J
435
783
0
276
0
1792
200
276
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default averageif cell doesn't contain "text"

Hi,

Am Wed, 18 Jul 2012 04:57:03 +0000 schrieb dkte737:

Hello, I have some data below I want to average but only if Column B
does not have "DAL". I had =averageif(b:b,<"DAL",J:J) but it doesn't
like it. Any help?


try:
=AVERAGEIF(B:B,"<DAL",J:J)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by dkte737 View Post
Hello, I have some data below I want to average but only if Column B does not have "DAL". I had =averageif(b:b,<"DAL",J:J) but it doesn't like it. Any help?

Column B
CPS
CPS
CPS
DAL
GVT
DAL
MRY
DAL



Column J
435
783
0
276
0
1792
200
276
Hi, try moving the first quote mark to before the < rather than after it.

=averageif(b:b,"<DAL",J:J)
  #4   Report Post  
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by Spencer101 View Post
Hi, try moving the first quote mark to before the < rather than after it.

=averageif(b:b,"<DAL",J:J)
Thank you!

Now I realized to get a good weighted average, I need to multiply J:J by its price in H:H, then take the average, but how do I do that?



Column B
Location
CPS
CPS
CPS
DAL
GVT
DAL
MRY
DAL
PHX


Column H
Fuel Purchased
435
783
0
276
0
1792
200
276
300


Column J
Fuel Price



4.21

4.34
6.34

4.24

Last edited by dkte737 : July 18th 12 at 01:46 PM
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine text from multiple cells into one cell - =(A1&","&A2","&A3 mh Excel Worksheet Functions 5 July 27th 09 02:40 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel: Changing "numeric $" to "text $" in a different cell. Heather_CCF Excel Worksheet Functions 1 September 5th 06 06:06 PM
I need the equivalent of a "averageif" formula... plettieri Excel Discussion (Misc queries) 1 May 24th 06 02:19 AM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 04:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"