Hi friends!
I have a car data spreadsheet taken from a car listing website with ~7000 row entries of various cars currently on the market and only 4 columns: Make/Model, Production year, Miles and Price
I want to create a fifth column (E), where for each row I will be calculating the average market price of that specific car (based on the prices on that list), following though all the below rules
1) Model: consider prices only from cars of the exact same Make/Model
2) Production Year: consider prices from cars that have a production year from -1 to +1 (i.e. if the specific car's production year is 2012, i want to consider prices from cars between 2011 and 2013)
3) Miles: consider prices from cars with a mileage from -15000 to +15000 (i.e. if the spefic car has a mileage of 42000, i want to consider prices from cars with mileage between 27000 and 57000)
4) Avoid doublecounts (see below the example from Cintroen C5, this is a doublecount in the list
I tried to fix this in a singly formula with averageifs, but I am not able to add a dynamically running range in the function's criteria (I don't want to hard code the ranges, only the thresholds -+1 and -+15000)
Any thoughts? I am attaching also a sample view of the spreadsheet
Thanks!!!!
<tbody>
</tbody>
I have a car data spreadsheet taken from a car listing website with ~7000 row entries of various cars currently on the market and only 4 columns: Make/Model, Production year, Miles and Price
I want to create a fifth column (E), where for each row I will be calculating the average market price of that specific car (based on the prices on that list), following though all the below rules
1) Model: consider prices only from cars of the exact same Make/Model
2) Production Year: consider prices from cars that have a production year from -1 to +1 (i.e. if the specific car's production year is 2012, i want to consider prices from cars between 2011 and 2013)
3) Miles: consider prices from cars with a mileage from -15000 to +15000 (i.e. if the spefic car has a mileage of 42000, i want to consider prices from cars with mileage between 27000 and 57000)
4) Avoid doublecounts (see below the example from Cintroen C5, this is a doublecount in the list
I tried to fix this in a singly formula with averageifs, but I am not able to add a dynamically running range in the function's criteria (I don't want to hard code the ranges, only the thresholds -+1 and -+15000)
Any thoughts? I am attaching also a sample view of the spreadsheet
Thanks!!!!
Make/Model | Price | Production year | Miles | Ave price based on Model-Year-Miles |
Mercedes-Benz A 160 | 8900 | 2009 | 150000 | |
Citroen C4 | 4000 | 2006 | 149980 | |
Mercedes-Benz ML 320 | 25900 | 2008 | 149800 | |
Renault Laguna | 9999 | 2012 | 149500 | |
Renault Kangoo | 5150 | 2007 | 149456 | |
Mercedes-Benz CLK 200 | 13990 | 2008 | 149392 | |
Seat Cordoba | 3700 | 2006 | 149142 | |
Volkswagen Golf | 8900 | 2006 | 149000 | |
Nissan Qashqai | 12500 | 2009 | 149000 | |
Citroen C5 | 11800 | 2011 | 149000 | |
Citroen C5 | 11800 | 2011 | 149000 | |
Bmw 525 | 10950 | 2006 | 149000 | |
Volkswagen Polo | 10555 | 2012 | 149000 | |
Opel Zafira | 10500 | 2011 | 149000 | |
<tbody>
</tbody>