Automatically filling a cell with a value from a table based on the value of a cell next to the destination cell

Leonard010193

New Member
Joined
Aug 11, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Afternoon,

I have table made up of the following values
Column AColumn B
2.51
42
63
104

I want to be able automatically take the values in column B based on the value in column A.

So if I enter the value of 2.5 in cell C5 for example, I want cell C6 to automatically fill the value in column B next to the value 2.5.

So C6 should show the value 1 if cell C5 = 2.5

Any help would be amazing.

Thank you.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about
Excel Formula:
=INDEX(B2:B5,MATCH(C5,A2:A5,0))
 
Upvote 0
Solution
Standard VLOOKUP formula here...

=VLOOKUP(C5,$A:$B,2,0)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Glad we could help & thanks for the feedback.
Hello,

is it possible to have two index statements to fill a cell?

In this instance, I need to be able to enter numbers 1 to 5 in column B cells which populates column C with the cable type from the controls cable table (2nd screenshot).

The cable type in column C then needs to select the appropriate price base on the cable type and number of cores. I've got them working individually but ideally I need simultaneous, so when I change the cable type in column B and the cores number in column D it applies the appropriate price in column E.

Hope this make sense.

1660252428721.png

1660252488326.png
 
Upvote 0
You will need put the type into each row on the controls cable table.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,267
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top