Auto Generate Value in Multiple Cells based on A Given

petshop87

New Member
Joined
Aug 29, 2011
Messages
2
I need to auto generate values 0 and 1 in 5 cells based on a single cell
My problem is
IF F1="Independent" 3 of the 5 cells should contain 1 as value
IF F1="Instructional" 2 of the 5 cells should contain 1 as value
IF F1="Frustration" 0 of the 5 cells should contain 1 as value
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Do the same cells always contain the same response to F1 or do you need the cells to have a random "0" or "1" but with the proper total? If the same cells have the same value it would be a combination of "If" statements and "OR" operators.
 
Upvote 0
I need the 0 and 1 to be in random cells but with the same total
EX:
2upv728.png
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

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