Data best fit?

gobblechops

New Member
Joined
Apr 27, 2017
Messages
24
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.
 

Some videos you may like

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
Joined
Apr 27, 2017
Messages
24
Hi thanks for the reply,

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

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
53,631
Office Version
365
Platform
Windows
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
Joined
Apr 27, 2017
Messages
24
I think I have found the solution, it was more of a mathematics question. Thanks for the quick reply.
 

Watch MrExcel Video

Forum statistics

Threads
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...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top