How do I write the formula for Median IF, while also ignoring errors?
Looking to find the median price of all the Red sweaters while also ignoring any errors.....
How do I write the formula for Median IF, while also ignoring errors?
Looking to find the median price of all the Red sweaters while also ignoring any errors.....
Something like...
=MEDIAN(IF((CriteriaRange="Criteria")*NOT(ISERR(ValueRange)),ValueRange))
Confirmed as array (CTRL + SHIFT + ENTER)
Edit: But the best practice is to get rid of error in the source calculation (if the error stems from it) by using IFERROR().
?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
― Robert A. Heinlein
Unfortunately that doesn't work; any other suggestions?
Without seeing how your data is set up. Can't really give you other suggestions.
I'd recommend uploading sample workbook with desensitized data along with expected result.
To upload, use "Go Advanced" Button and find "Manage Attachments" hyperlink. It will launch new window/tab for managing uploads.
Use this array formula:
=MEDIAN(IF($B$1:$B$10="B",IF(NOT(ISERROR($A$1:$A$10)),$A$1:$A$10)))
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
As you can see, it does work. D+SO, if it's not working on your sheet, we will need to see a sample. In which case:
Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).
1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.
2. Make sure that your desired solution is also shown (mock up the results manually).
3. Make sure that all confidential information is removed first!!
4. Try to avoid using merged cells. They cause lots of problems!
Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
If I understand correctly something like this?It doesn't have to be array entered and it ignores errors (option 6).Formula:Please Login or Register to view this content.
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks