Assigning Values

bala06

New Member
Joined
May 31, 2011
Messages
39
Dear Excel Users

I would like to assign values from 0 to 2500 as "zero" except some numbers in between them.

Is it possible in using excel.

For example, my data looks like this
starts from 0 and ends in 2500. I want to assign 303, 314, 327 as value "1" and others as "0".

I have attached the copy of data for you reference.

Kindly advice.

Many Thanks

Balaji
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
If your numbers are in A1:A2500, you could use this formula in row 1 a different column (B1 for instance) and then copy down:

=--OR(A1={303,314,327})

It will give 1 for the selected numbers, zero for everything else. If you want to overwrite your original data, you can copy the column of formulas, then paste special -> values over the old values (0 thru 2500).
 
Upvote 0
If your numbers are in A1:A2500, you could use this formula in row 1 a different column (B1 for instance) and then copy down:

=--OR(A1={303,314,327})

It will give 1 for the selected numbers, zero for everything else. If you want to overwrite your original data, you can copy the column of formulas, then paste special -> values over the old values (0 thru 2500).


Dear Excel User

It works

Many Thanks
Balaji
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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