# Data best fit?

#### gobblechops

##### New Member
Hi all,

If I have a range of numbers to 2 decimal places in column A, for example from -2.52 to 3.84 with intervals that are not the same -2.52, -2.49, -2.48, -2,42, -2.42, -2.41, -2.38....... 3.65, 3.69, 3.70, 3.80.

In column B the number in the cell adjacent to -2.52 is 20

The number is the cell adjacent to 3.80 is 1.10.

How can you fill the empty cells in column B with numbers between 20 and 1.10 that best fit based on the data set in column A?

I am sure there is a mathematical term for this but I think this explains the situation.

Thank you.

### Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

#### gobblechops

##### New Member

This may be along the right lines but I have a full data set in column A but only 2 values in column B which are adjacent to the highest and lowest values in column A.

I want to fill the empty cells in column B with the best fit based on column A data?

Thanks.

#### Joe4

It might be best if you post an actual snap shot of your actual data, and then another showing your expected results.

There are tools you can use to post screen images. They are listed in Section B of this link here: http://www.mrexcel.com/forum/board-a...forum-use.html.
Also, there is a Test Here forum on this board that you can use to test out these tools to make sure they are working correctly before using them in your question.

#### gobblechops

##### New Member
I think I have found the solution, it was more of a mathematics question. Thanks for the quick reply.

1,101,960
Messages
5,483,898
Members
407,420
Latest member
Vinu78

### This Week's Hot Topics

• Finding issue in If elseif else with For each Loop
Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
• MsgBox Error
Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
• CELL FORMAT - IF CONDITION
My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
• Show numbers nearly the same
Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...