Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dangleberry
 
Posts: n/a
Default Well & Truly stuck on a cell formula!


Hi Folks

I'm a newbie to this forum so please go easy on me :)

I have an Excel sheet, and I would like to create a formula whereby the
number I enter into once cell determines a text phrase in another - ie:

If I enter a number between 0.001 and 0.249 in cell F2, then in cell B2
the phrase 'class7' is input. If i enter a number between 0.250 and
0.499, the in cell B2 the phrase class6 is input - and so on.....

Any help would be greatly appreciated, I'm no beginner but I certainly
aint no expert! ;)

Kind Regards
Mark


--
dangleberry
------------------------------------------------------------------------
dangleberry's Profile: http://www.excelforum.com/member.php...o&userid=33877
View this thread: http://www.excelforum.com/showthread...hreadid=536561

  #2   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Well & Truly stuck on a cell formula!

One way:

In a separate location, perhaps a second sheet enter

A B
1 0.001 class7
2 0.250 class6
3 0.500 class5
....
7 40.000 class1


Then in your data sheet, use

B2: =VLOOKUP(F2,Sheet2!A:B,2,TRUE)


In article ,
dangleberry
wrote:

Hi Folks

I'm a newbie to this forum so please go easy on me :)

I have an Excel sheet, and I would like to create a formula whereby the
number I enter into once cell determines a text phrase in another - ie:

If I enter a number between 0.001 and 0.249 in cell F2, then in cell B2
the phrase 'class7' is input. If i enter a number between 0.250 and
0.499, the in cell B2 the phrase class6 is input - and so on.....

Any help would be greatly appreciated, I'm no beginner but I certainly
aint no expert! ;)

Kind Regards
Mark

  #3   Report Post  
Posted to microsoft.public.excel.misc
dangleberry
 
Posts: n/a
Default Well & Truly stuck on a cell formula!


Sorry, no joy with that I'm afraid. I think I'm maybe getting a bit out
of my depth here!

I was thinking (very roughly) along the lines of something like this:

=IF(F2<0.001 AND 0.250)"class7"*OR(IF(F2<0.251 AND 0.500)"class6"
etc. etc.

Obviously this actual formula wont work, but I don't know where to put
the brackets and commas etc.

Any firther help would be greatly appreciated.

Cheers
Mark


--
dangleberry
------------------------------------------------------------------------
dangleberry's Profile: http://www.excelforum.com/member.php...o&userid=33877
View this thread: http://www.excelforum.com/showthread...hreadid=536561

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dominic
 
Posts: n/a
Default Well & Truly stuck on a cell formula!

Mark,

You may want to give JE's suggestion a more thorough examination.

It works perfectly for me if I am understanding your request.



"dangleberry" wrote:


Sorry, no joy with that I'm afraid. I think I'm maybe getting a bit out
of my depth here!

I was thinking (very roughly) along the lines of something like this:

=IF(F2<0.001 AND 0.250)"class7"*OR(IF(F2<0.251 AND 0.500)"class6"
etc. etc.

Obviously this actual formula wont work, but I don't know where to put
the brackets and commas etc.

Any firther help would be greatly appreciated.

Cheers
Mark


--
dangleberry
------------------------------------------------------------------------
dangleberry's Profile: http://www.excelforum.com/member.php...o&userid=33877
View this thread: http://www.excelforum.com/showthread...hreadid=536561


  #5   Report Post  
Posted to microsoft.public.excel.misc
KePaHa
 
Posts: n/a
Default Well & Truly stuck on a cell formula!

IF statements allow you to nest up to seven times. So if that is not too
limiting for what you need, you could do somehting like:

=IF(C5<=0.025,"lowest",IF(C5<=0.05,"middle",IF(C5< =0.075,"higher","highest")))

"dangleberry" wrote:


Sorry, no joy with that I'm afraid. I think I'm maybe getting a bit out
of my depth here!

I was thinking (very roughly) along the lines of something like this:

=IF(F2<0.001 AND 0.250)"class7"*OR(IF(F2<0.251 AND 0.500)"class6"
etc. etc.

Obviously this actual formula wont work, but I don't know where to put
the brackets and commas etc.

Any firther help would be greatly appreciated.

Cheers
Mark


--
dangleberry
------------------------------------------------------------------------
dangleberry's Profile: http://www.excelforum.com/member.php...o&userid=33877
View this thread: http://www.excelforum.com/showthread...hreadid=536561




  #6   Report Post  
Posted to microsoft.public.excel.misc
dangleberry
 
Posts: n/a
Default Well & Truly stuck on a cell formula!


Cheers, that last one has worked a treat. I'm sure the previous
suggestion works, I'm just not too knowledgable when it comes to
in-depth Excel stuff, so its more likely me than anything else as to
why I couldn't get it to work.

Thanks all for your help

Kind Regards
Mark


KePaHa Wrote:
IF statements allow you to nest up to seven times. So if that is not
too
limiting for what you need, you could do somehting like:

=IF(C5<=0.025,"lowest",IF(C5<=0.05,"middle",IF(C5< =0.075,"higher","highest")))

"dangleberry" wrote:


Sorry, no joy with that I'm afraid. I think I'm maybe getting a bit

out
of my depth here!

I was thinking (very roughly) along the lines of something like

this:

=IF(F2<0.001 AND 0.250)"class7"*OR(IF(F2<0.251 AND 0.500)"class6"
etc. etc.

Obviously this actual formula wont work, but I don't know where to

put
the brackets and commas etc.

Any firther help would be greatly appreciated.

Cheers
Mark


--
dangleberry

------------------------------------------------------------------------
dangleberry's Profile:

http://www.excelforum.com/member.php...o&userid=33877
View this thread:

http://www.excelforum.com/showthread...hreadid=536561




--
dangleberry
------------------------------------------------------------------------
dangleberry's Profile: http://www.excelforum.com/member.php...o&userid=33877
View this thread: http://www.excelforum.com/showthread...hreadid=536561

  #7   Report Post  
Posted to microsoft.public.excel.misc
Dominic
 
Posts: n/a
Default Well & Truly stuck on a cell formula!

Mark,

Glad you got it working.

If you end up with more than seven "class" distinctions, just write back and
we'll try to get you up and running with JE's suggestion.

Cheers.

"dangleberry" wrote:


Cheers, that last one has worked a treat. I'm sure the previous
suggestion works, I'm just not too knowledgable when it comes to
in-depth Excel stuff, so its more likely me than anything else as to
why I couldn't get it to work.

Thanks all for your help

Kind Regards
Mark


KePaHa Wrote:
IF statements allow you to nest up to seven times. So if that is not
too
limiting for what you need, you could do somehting like:

=IF(C5<=0.025,"lowest",IF(C5<=0.05,"middle",IF(C5< =0.075,"higher","highest")))

"dangleberry" wrote:


Sorry, no joy with that I'm afraid. I think I'm maybe getting a bit

out
of my depth here!

I was thinking (very roughly) along the lines of something like

this:

=IF(F2<0.001 AND 0.250)"class7"*OR(IF(F2<0.251 AND 0.500)"class6"
etc. etc.

Obviously this actual formula wont work, but I don't know where to

put
the brackets and commas etc.

Any firther help would be greatly appreciated.

Cheers
Mark


--
dangleberry

------------------------------------------------------------------------
dangleberry's Profile:

http://www.excelforum.com/member.php...o&userid=33877
View this thread:

http://www.excelforum.com/showthread...hreadid=536561




--
dangleberry
------------------------------------------------------------------------
dangleberry's Profile: http://www.excelforum.com/member.php...o&userid=33877
View this thread: http://www.excelforum.com/showthread...hreadid=536561


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
How do I set a cell value based on a formula in another cell? dingy101 Excel Discussion (Misc queries) 1 November 21st 05 08:51 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM


All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"