Solved

Excel 2010 - Calculate a total value based on text selection

Posted on 2013-11-21
6
286 Views
Last Modified: 2013-11-22
Hi,
Users will select from a data validation list (6 choices) in blocks of rows (in column C). Eg; rows 8 -18, 23-43, 48-60, 66-83.  

I need to assign a different value to each of the choices (say 1 to 6) and calculate the total value for each block of rows & display that total in column D, next row down, eg; total for rows 8-18 will display in D19.

I have similar requirements are on other worksheets in same file, just the blocks of rows differ.

Your help will be greatly appreciated.
0
Comment
Question by:kazmdav
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39665237
It would be helpful to understand and test if you upload a sample workbook. You may upload something fake.
0
 
LVL 4

Expert Comment

by:yuppydu
ID: 39665246
Either explain in greater detail your logic or upload a file. I have no idea what you need to do...
0
 
LVL 2

Accepted Solution

by:
samrad1 earned 500 total points
ID: 39665392
Hey! I took at stab at what i think you mean, though I'm just guessing so hopefully it helps. Used data validation and a smaller set of rows in the file attached. I assign numbers to the value to the left of the data validation based on a if statement.

The IF formula in column A refers to a list of possible data validation responses in E3:E5 :
=IF(B1=$E$3,1,IF(B1 = $E$4, 2,IF(B1=$E$5,3,"")))

The group total then adds up the values returned by the respective IF formulas.

sum-list.xlsx
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:kazmdav
ID: 39665418
Thanks samrad1, it' s spot on. Works great!  Thanks for your speedy response too.
0
 

Author Closing Comment

by:kazmdav
ID: 39665422
Love the initiative!
0
 
LVL 81

Expert Comment

by:byundt
ID: 39670653
I realize that the question has already been answered, but if you would like to avoid using an auxiliary column for the IF formulas, then consider array-entering the following for your total:
=SUM((TRANSPOSE(B1:B5)=$E$3:$E$5)*($F$3:$F$5))

The above formula uses the workbook posted by samrad1, but I added numeric scores for the dropdown choices in cells F3:F5.

The attached workbook is samrad1's workbook with his IF formulas modified to use values in F3:F5. I put the array-entered formulas in D6 and D12. You can see that they return the same results as the sum of the IF formulas.

Brad
sum-listQ28300200.xlsx
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question