|
|
 |
|

8th June 2006, 03:42 AM
|
|
Inactive Registered Visitor
Registration Date: Jan 2003
Location: Melbourne, FL
|
|
Posts: 446
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 59
|
|
MS Excel -- Can a cell value be a range (1-2)
Just a quick question about spreadsheets, MS Excel in particular...
It would be useful, but is probably logically impossible to accomplish within a spreadsheet, if a cell value could be a range, i.e. between 1 and 2, or 1-2.
Is this possible? If not, what are some ways to accomplish the same thing? For example, I want to work with a tolerance which is a range 1.076-1.080.
I figure the only practical way is to input the low and high side of the range in separate cells, and to compare data using if less than, if greater than functions, etc.
What are some ways you are accomplishing this within MS Excel?
|

8th June 2006, 04:06 AM
|
|
Involved - Posts
Registration Date: Dec 2004
Location: Glasgow, Scotland
|
|
Posts: 39
Thanks Given to Others: 1
Thanked 10 Times in 9 Posts
Karma Power: 23 Karma: 140  
|
|
Re: MS Excel -- Can a cell value be a range (1-2)
As far as I'm aware the value in the cell has to be a unique value.
As you said the most logical (and probably easiest way) is to set your boundaries in two cells and then use a nested "IF" statement
=if("Entered_value<Lower limit,value if true, if("Entered_value>Upper limit, value if true, value if false)
or alternativley set your nominal and then a tolerance and set a "IF" statement as
=if("Entered_value<Nominal - Tolerance,value if true, if("Entered_value>Nominal+tolerance, value if true, value if false).
Please note these formuals sound right in my head, but I have been known to make the odd mistake
|

8th June 2006, 04:11 AM
|
|
Inactive Registered Visitor
Registration Date: Jan 2003
Location: Melbourne, FL
|
|
Posts: 446
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 59
|
|
Re: MS Excel -- Can a cell value be a range (1-2)
hah
Thank you so much.
I guess I can't see how a range in one cell would work for a spreadsheet. Must be why it's not possible. Just thought I'd check before doing any work using the other strategy.
Speaking of which, are there any other strategies people would like to share?
|

8th June 2006, 05:24 AM
|
|
Involved - Posts
Registration Date: Dec 2004
Location: Glasgow, Scotland
|
|
Posts: 39
Thanks Given to Others: 1
Thanked 10 Times in 9 Posts
Karma Power: 23 Karma: 140  
|
|
Re: MS Excel -- Can a cell value be a range (1-2)
I'm not sure how it would apply to what you are trying to do, but you can set multiple constraints on a cell, through using the "Solver" plug in (Tools/Add In's/Solver add in), it's more for "Goal seek" scenarios through iterations though, might be worth a peek none the less
|

8th June 2006, 05:44 AM
|
|
Inactive Registered Visitor
Registration Date: Jan 2003
Location: Melbourne, FL
|
|
Posts: 446
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 59
|
|
Re: MS Excel -- Can a cell value be a range (1-2)
Thanks The Moose
Actually, what I'm trying to do is create a format for inputting specifications of mechanical drawings. This thread is part of an on-going brainstorming session for how to accomplish this, and complete databasing of specifications.
This would be of immediate use in generating check sheets, ISIR paperwork, etc. Conversions would be accomplished properly in every instance and mistakes and double-work would be eliminated.
On the long term, it would be possible to data collect inspection results, which would open up doors to other worlds in my opinion.
Probably the data entry, check sheet generation, and ISIR report generation are the only things that can be accomplished within the scope of MS Excel itself... the databasing would probably need something more powerful than MS Access, which allows only one person to view the database at a time.
Again, thanks so much for the shared knowledge of MS Excel.
|

8th June 2006, 09:47 AM
|
 |
The Big Smelly Ogre
Registration Date: Aug 2001
Location: Morgantown, WV
Age: 53
|
|
Posts: 53
Thanks Given to Others: 11
Thanked 12 Times in 10 Posts
Karma Power: 40
|
|
Re: MS Excel -- Can a cell value be a range (1-2)
|
|
Thanks to Dan Armstrong for your informative Post and/or Attachment!
|
|

8th June 2006, 11:11 AM
|
 |
Forum Administrator
Registration Date: Mar 2000
Location: Pune, India
Age: 47
|
|
Posts: 1,073
Thanks Given to Others: 83
Thanked 84 Times in 55 Posts
Karma Power: 90
|
|
Re: MS Excel -- Can a cell value be a range (1-2)
atetsade, you could possibly use some string manipulation functions. Is this what you are looking for?
Enter the text representing the range, say "1.076-1.280" in Cell A1 (without Quotes).
(I have used TRIM but, spaces should not matter. It could be " 1.076 - 1.280 " )
Then
First Number (to the left of "-") is:
=TRIM(MID(A1,1,SEARCH("-",A1,1)-1))
Second Number (to the right of "-") is:
=TRIM(MID(A1,SEARCH("-",A1,1)+1,100))
Range (difference) is:
=ABS(TRIM(MID(A1,SEARCH("-",A1,1)+1,100))-TRIM(MID(A1,1,SEARCH("-",A1,1)-1)))
You could remove the ABS if you do not need the absolute value.
__________________
You are never given a wish without also being given the power to make it true. You may have to work for it, however. ~Richard Bach
|

8th June 2006, 11:24 AM
|
 |
Super Moderator
Registration Date: Jun 2000
Location: North of Chicago,Illinois, USA
Age: 49
|
|
Posts: 2,088
Thanks Given to Others: 419
Thanked 314 Times in 234 Posts
Karma Power: 176
|
|
Re: MS Excel -- Can a cell value be a range (1-2)
Quote:
|
Originally Posted by atetsade
Is this possible? If not, what are some ways to accomplish the same thing? For example, I want to work with a tolerance which is a range 1.076-1.080.
I figure the only practical way is to input the low and high side of the range in separate cells, and to compare data using if less than, if greater than functions, etc.
What are some ways you are accomplishing this within MS Excel?
|
Here is the real low tech way.....
On many occasions I must input my 1st Article Data into a customers spread sheet. The columns are set for nominal, and a seperate column for the plus and the minus. If you are using something similar, use 1.078 for nominal with plus/minus fields at .002.
__________________
CarolX
Theater is life, film is art, and television is furniture.
|
Lower Navigation Bar
|
|
|
|
Visitors Currently Viewing this Thread: 1 (0 Registered Visitors and 1 Unregistered Guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate Thread Content |
Linear Mode
|
|
Posting Settings
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|