Finding Matching value in list and put fixed value or number or text in corresponding cell.

amitdelpanwar

New Member
Joined
Jul 4, 2017
Messages
4
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Subnet[/TD]
[TD]Mask[/TD]
[/TR]
[TR]
[TD]255.255.255.0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]255.255.252.0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]255.255.255.0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]255.255.255.252[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]255.255.252.0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]255.25.255.255[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Subnet Mask
255.255.255.0 = 24
255.255.252.0 = 22
255.255.255.252= 30
255.25.255.255 = 32

I want to put Mask value automatically in "Mask" cell in the list.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Is this what you mean?


Book1
ABCDEF
1SubnetMaskSubnetMask
2255.255.255.024255.255.255.024
3255.255.252.022255.255.252.022
4255.255.255.024255.255.255.25230
5255.255.255.25230255.25.255.25532
6255.255.252.022
7255.25.255.25532
Mask
Cell Formulas
RangeFormula
B2=VLOOKUP(A2,E$2:F$5,2,0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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