?
Solved

Excel equation

Posted on 2014-01-27
3
Medium Priority
?
221 Views
Last Modified: 2014-01-27
hi all,

I have this is in my excel sheet

=IF(C2>=30, "2000", IF(C2>15,"520", IF(C2<=15,"400")))

this works in that it provides a result in the cell.

however, this cell is in a column of which I need a total sum. it does not read this cell??

how can I fix this?
thanks
Gareth
0
Comment
Question by:gareth629
[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
  • 2
3 Comments
 

Accepted Solution

by:
gareth629 earned 0 total points
ID: 39814131
Got it!!

if I change the 400, 560 (was 520, just go with it), 2000 to ratios of 400 ie 1, 1.4, 5 and then add * 400 after the equation it works.

therefore - =IF(C2>=30, "4", IF(C5>15,"2", IF(C5<=15,"1")))*400

it works.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39814170
Although you have got it to work, the real problem was that you were entering text and not numbers. You should have had

=IF(C2>=30, 2000, IF(C2>15,520, IF(C2<=15,400)))

instead of

=IF(C2>=30, "2000", IF(C2>15,"520", IF(C2<=15,"400")))
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39814176
BTW I just noticed that the question formula and the solved formula would yield different results.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

762 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