Gurus,
I need to average a column say B:B (with dollars) only if Column A:A contains either A or B or E. Any help will be highly appreciate.
Regards,
Xenos
Gurus,
I need to average a column say B:B (with dollars) only if Column A:A contains either A or B or E. Any help will be highly appreciate.
Regards,
Xenos
Hi
I am not a Guru..but you can try, something like this.
=IF(COUNTIF(A:A;"A")+COUNTIF(A:A;"B")+COUNTIF(A:A;"C")>0;AVERAGE(B:B);"")
Hope to helps you
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
This regular formula averages the Col_B cells where the corresponding Col_A cell equals any of a, b, or e
Is that something you can work with?![]()
Please Login or Register to view this content.
Thanks for the prompt reply but after using your formula the answer is not coming correct.
Thanks for the prompt reply but after using your formula the answer is not coming correct
..An example is here..
In this part of the formula I posted:
SUM(COUNTIF(A:A,"="&{"a","b","e"}))
This section: "="&{"a","b","e"}
resolves to these three distinct criteria:
="a"
="b"
="e"
(The braces {} define the beginning and end of the array of values)
Consequently, this: SUM(COUNTIF(A:A,"="&{"a","b","e"}))
is equivalent to this:
SUM(COUNTIF(A:A,="a"),COUNTIF(A:A,="b"),COUNTIF(A:A,="e"))
I hope that helps
Thanks RonConsequently, this: SUM(COUNTIF(A:A,"="&{"a","b","e"}))
is equivalent to this:
SUM(COUNTIF(A:A,="a"),COUNTIF(A:A,="b"),COUNTIF(A:A,="e"))
First time see this...
I dIdn't knew this!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks