Placing Conditions on Randbetween to Avoid Clashes With Other Columns

sincy

New Member
Joined
Apr 30, 2018
Messages
3
Hi Guys,

Firstly, apologies for the total lack of a snappy title...

I have a job interview next week in which i will have to show how i would handle receiving responses to certain questions on a questionnaire.

My idea is to Randbetween and Choose(Randbetween) to give myself a real working example of what i might do.

So i have various headers and have randomised between set parameters to fill the columns with possible responses.

The problem is that some of the randomised entries in one column would make no sense in real life when you consider them against some of the other data in an another column. (I know.....that's they call it random!)

Is there a way to tell Excel not to enter X in a cell where the corresponding cell one column to the right is Y??

Thank Youuuuuuuuuuuu
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
with a macro, yes

otherwise in A1 =if(B1="Y","",999)

so you get either blank or 999
 

Watch MrExcel Video

Forum statistics

Threads
1,123,312
Messages
5,600,887
Members
414,414
Latest member
neil_c

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
Top