Question from an Excel newbie

marcse86

New Member
Joined
Nov 2, 2017
Messages
2
Hi guys,

I am new to Excel and would like to know what formula to use for the example below.

I have a data table which includes the type of fruit, the size and the result.

I know how to use the data validation function to create a selectable drop down list for both items, but would like to automatically calculate the result based on the options that I chose.

I would like this to be displayed in the result column.

SizeApplesOrangesBananas
Small123
Medium456
Large789

<tbody>
</tbody>

FruitApples
SizeMed
Result4

<tbody>
</tbody>


Thanks in advance :)
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
See if this will get you started?

B​
C​
D​
3​
Type​
Category​
Breed​
4​
FishMarineShark
This would be where your drop-downs are
1. create a range name for the main category
2. create a range name for each sub-category, based on what it is

for mine, the main category is called Type (A2)
for the sub categories I give them the same name as in Type (B2:E2)
(if you have another level, you would repeat this for each subcategory, to get sub-sub-categries)

To get the DD's to work...

DD for B4 =TYPE
DD for C4 =INDIRECT(SUBSTITUTE(B4," ","_"))

THis would be your data table that th drop-downs reference...
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
1​
Level 1Level 2Level 3
2​
TypeMammalBirdFishBugDogCatFresh WaterMarine
3​
MammalDogDomesticFresh WaterInsectDobermanLionTroutShark
4​
BirdCatWildMarineArachnidPoodleTigerMinowBarracuda
5​
FishCowbulldogHousePike
6​
Bugs

Hope this helps?
 
Upvote 0
Hi guys,

I am new to Excel and would like to know what formula to use for the example below.

I have a data table which includes the type of fruit, the size and the result.

I know how to use the data validation function to create a selectable drop down list for both items, but would like to automatically calculate the result based on the options that I chose.

I would like this to be displayed in the result column.

Size
Apples
Oranges
Bananas
Small
1
2
3
Medium
4
5
6
Large
7
8
9

<tbody>
</tbody>

Fruit
Apples
Size
Med
Result
4

<tbody>
</tbody>


Thanks in advance :)

Try,

=INDEX(B2:D4,MATCH(E1,A2:A4,0),MATCH(F1,B1:D1,0))

Where B2:D4 houses your values, A2:A4 houses your sizes and B1:D1 houses fruit names. Enter size in E1 and fruit in F1.
 
Upvote 0
oops I think I showed you how to creas DD's when you already had that part, and just wanted to pull data based on those DD selections - apologies :(
 
Upvote 0

Forum statistics

Threads
1,221,470
Messages
6,160,029
Members
451,611
Latest member
PattiButche

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