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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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