Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
Solved

# Multiple IF & multiply Statement

Posted on 2013-11-19
Medium Priority
125 Views
Hi,

I have attached a spreadsheet where i am allowing users to select different ratings in dropdown boxes which afffect the overall score in I8.

Currently it works fine as i have manually inputted the appropriate score in the formula

=(3*'Standing Data'!C8)+(3*'Standing Data'!G8)+(2*'Standing Data'!K8)+(1*'Standing Data'!O8)

3 = High
2 = Medium
1 = Low

As the users change the dropdowns, i want the numbers to update. So above the first dropdown is high, if a user changed that to low, i would need the formula to calculate as

=(2*'Standing Data'!C8)+(3*'Standing Data'!G8)+(2*'Standing Data'!K8)+(1*'Standing Data'!O8)

Has anyone a suggestion to how i could achieve this?

Many thanks
Multiple-IF-EE.xlsx
0
Question by:Seamus2626
• 4
• 2

LVL 34

Expert Comment

ID: 39659130
Have the dropdown populate a cell with the required value of 1 to 3 and then refer to that cell in the formula.

What variety of dropdown control are you using?

Thanks
Rob H
0

LVL 34

Accepted Solution

Rob Henson earned 2000 total points
ID: 39659144
Sorry just looked at file.

In M1 to M3 I have listed:

Low
Medium
High

then changed the formula to:

=(MATCH(E8,M1:M3,0)*'Standing Data'!C8)+(MATCH(F8,M1:M3,0)*'Standing Data'!G8)+(MATCH(G8,M1:M3,0)*'Standing Data'!K8)+(MATCH(H8,M1:M3,0)*'Standing Data'!O8)

Hope I have understood the rankings OK.

Thanks
Rob H
0

Author Closing Comment

ID: 39659153
You legend Rob, that is tidy!

Thanks
0

LVL 34

Expert Comment

ID: 39659155
Also looking at your formula in J8, you don't have an option for equal to 3 or equal to 2.15. These at the minute would fall out as "SCC" which I assume would not be correct.

You could probably simplify this formula with a close match lookup:

=VLOOKUP(I8,'Standing Data'!C20:D23,2)

Thanks
Rob H
0

Author Comment

ID: 39659164
Thanks Rob,

I just threw that formula in and received an #N/A error?

Regards,
Seamus
0

LVL 34

Expert Comment

ID: 39659378
#N/A would suggest that it is not finding the value of cell I8 in the first column of the range:

Standing Data'!C20:D23

See attached.

Rob H
Copy-of-Multiple-IF-EE.xlsx
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
###### Suggested Courses
Course of the Month13 days, 9 hours left to enroll