How to select Exact values under Dependent Rows?

Jyotirmaya

Board Regular
Joined
Dec 2, 2015
Messages
205
Office Version
  1. 2019
Platform
  1. Windows
for example
I have two Sheets "DATA" "RAW DATA"

In DATA sheets

[TABLE="width: 500"]
<tbody>[TR]
[TD]
APPLE[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]16.5[/TD]
[/TR]
[TR]
[TD]BANANA
[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]BANANA[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]BANANA[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]45
[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]111[/TD]
[/TR]
</tbody>[/TABLE]

In RAW DATA sheet in Column B I have to input APPLE/BANANA/ORANGE in various rows.

I want that if in B2 I have entered APPLE then in C2 I can enter only 10 or 15 or 16.5 if anything else I will enter then I will get error message that enter correct value. Similarly If I will enter Banana in column B of Raw Data sheet then I can only input values 35 or 20 or 36 in the column C

SO what will be the code for Column C of Raw Data sheet to do so ?​




 
Re: Excel Help.. How to select Exact values under Dependent Rows?

... or

- Select C2:C100
- Data Validation, Custom Formula: =MATCH(C2,INDIRECT(B2),0)


 
Upvote 0

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.
Re: Excel Help.. How to select Exact values under Dependent Rows?

Hi


If you want to enter the values manually and just make sure they are correct,then in 'RAW DATA'!C2 in the data validation instead of the list use the custom option and enter the formula:




=MATCH(C2,INDIRECT(B2),0)


If you try to enter a value different from 15, 25 e 26 you'll get an error pop-up


Does it help?








hello pgc01


similarly like the above I need some more help. If in the DATA sheet H column value will be more than 0 then Only in Raw Data sheet I can enter any value in Column H I J K L else it will show mw error pop-up.
 
Upvote 0

Forum statistics

Threads
1,223,348
Messages
6,171,571
Members
452,411
Latest member
colpie

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