Excel Formula Typing for Homework: Troubleshooting #VALUE Error

  • Thread starter Thread starter sara_87
  • Start date Start date
  • Tags Tags
    Excel Formula
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting a #VALUE error encountered while attempting to implement a specific formula in Excel for a homework assignment. The formula involves variables defined through Excel's name manager and is intended to calculate a predicted value based on input data.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes their formula S=t^(-1/b)*g and how they are trying to implement it in Excel, specifically mentioning the use of named variables b and g.
  • Another participant suggests that the #VALUE error may occur if one of the inputs is text rather than a number, prompting checks on the values in specific cells.
  • Some participants mention that the error could also arise from the cell not being wide enough to display the result, although this would typically show as ##### instead of #VALUE.
  • There is a discussion about the proper way to assign values to named variables in Excel, with one participant expressing confusion over the method used by the original poster (OP).
  • The OP clarifies their method of defining g and b in the name manager and initializing them in specific cells, questioning whether this approach is correct.
  • Another participant advises ensuring that the named variables are defined as absolute references in the name manager, suggesting that the OP might be using non-numeric values.
  • Subsequent posts shift focus to the installation and use of the Solver add-in in Excel, with participants providing guidance on how to locate and enable it in different versions of Excel.

Areas of Agreement / Disagreement

Participants express differing views on the cause of the #VALUE error, with no consensus reached on the specific issue. The discussion also transitions to the topic of the Solver add-in, where participants share instructions based on their experiences with different versions of Excel.

Contextual Notes

There are unresolved questions regarding the initialization of named variables and the specific conditions under which the #VALUE error occurs. The discussion also reflects variations in user interface across different versions of Excel, which may affect the troubleshooting process.

Who May Find This Useful

This discussion may be useful for students or users of Excel who are encountering similar formula errors, particularly in the context of homework assignments involving mathematical calculations.

sara_87
Messages
748
Reaction score
0

Homework Statement



I have the formula
S=t^(-1/b)*g
I want to type this into excel.

Homework Equations





The Attempt at a Solution


For S are values typed into the second column (B)
for t are values typed into column A.
I 'named' the b and g using the name manager and set the initial values as 1.
then in the column C i want the predicted values for S so to get the first predicted value, i typed:
=g*(A2^(-1/b))

but i kept getting the #VALUE error and i don't know what's wrong with =g*(A2^(-1/b))
Thank you
 
Physics news on Phys.org
That #VALUE can happen when one of the "numbers" is actually text.

A few things to look at are:

What is the value in cell A2?

And, what is the result when you type these formulas:

=g

=b​
 
It can also happen when the cell isn't wide enough to display the resultant value.
 
MATLABdude said:
It can also happen when the cell isn't wide enough to display the resultant value.

That gives #####, not #VALUE.
 
sylas said:
That gives #####, not #VALUE.

Ah, correct you are. However, I was unaware that you could assign values like that in Excel. Whenever I've done that, it's been hardcoded values, or using a locked reference like $A$5 for a value in cell A5 which you don't want automatically incremented by Excel.

EDIT: I think that might be why the OP's thing isn't working: they're trying to assign a value to b somewhere along the line, and then using the letter b in their calculations.
 
MATLABdude said:
EDIT: I think that might be why the OP's thing isn't working: they're trying to assign a value to b somewhere along the line, and then using the letter b in their calculations.

But doing that IS possible in Excel, it just has to be done properly.

Check out Insert-Name-Define for how to assign a cell's value to a variable name.
 
The value in A" (first value in that column) is 138.
I used the 'name manager' to define g and b.
I defined them then in A10 i put b and in B10 i put 1
then in A11 i put g and in B11 i put 1
(I put 1 because i needed to initialize the b and g) is this wrong?
I used the idea from the website:
http://www.csupomona.edu/~seskandari/documents/Curve_Fitting_William_Lee.pdf
see pages 6 and 7.
then i typed =g*(A2^(-1/b)) and this gave a #VALUE error.
But i don't know why?
 
Last edited by a moderator:
sara_87 said:
The value in A" (first value in that column) is 138.
I used the 'name manager' to define g and b.
I defined them then in A10 i put b and in B10 i put 1
then in A11 i put g and in B11 i put 1
(I put 1 because i needed to initialize the b and g) is this wrong?
I used the idea from the website:
http://www.csupomona.edu/~seskandari/documents/Curve_Fitting_William_Lee.pdf
see pages 6 and 7.
then i typed =g*(A2^(-1/b)) and this gave a #VALUE error.
But i don't know why?

Well, you are not getting #NAME? errors, so you must have defined g and b to be something.

Make sure g and b are defined to be absolute references (with dollar signs) in the name manager. That's the default. Somehow you are using things that are not numbers.

Here's what I think you are trying to do:
excel.JPG


Cheers -- sylas
 
Last edited by a moderator:
ok, thanks.
On the excel vista where's the 'solver' tool? i can't seem to find it since it's different to the windows xp.
thanks
 
  • #10
Have you installed the Solver add-in? Just having Excel does not necessarily mean you have Solver.

Click on Tools, then Add-Ins. Is the box checked for "Solver"?
 
  • #11
but on my excel, there isn't a 'tools' section. there's just:
home, insert, page layout, formulas, data, review, view.
where can i find the add-ins?
thank you
 
  • #12
I see. You have Excel 2007, and I have Excel 2003. Things are laid out a lot differently.

Here are instructions for installing Solver:
http://office.microsoft.com/en-us/excel/HP100215701033.aspx

If you get to the part where the Solver box is already checked, that means you already should have it.
 
Last edited by a moderator:
  • #13
An easier (?) way to see if you already have Solver:

"First check whether the Solver is installed on your computer by clicking on 'data' in the menu bar. You will see 'Solver' under data analysis on the right."

(from http://www.familycomputerclub.com/excel/how-to-use-solver-in-excel-2007.html )
 
  • #14
Thank you.
I installed it just now.
(I didnt have it before)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
7
Views
3K
Replies
20
Views
4K
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
12K
Replies
8
Views
3K
  • · Replies 18 ·
Replies
18
Views
4K