Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Easy Worksheet Function help

Where did i go wrong?

=IF(F4=' 100',"1",)OR(F4='76 - 100',"2",)OR(F4='51 - 75',"3",)OR(F4='26 -
50',"4",)OR(F4='< 25',"5")

Basically€¦

If F4 is equal €˜ 100 then display a 1 or, if F4 is equal to 76 €“ 100
then display a 2 or, if F4 is equal to 51 €“ 75 then display a 3

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Easy Worksheet Function help

Hi,

Because you don't say what you want if F4 <51 this produces unspecified

=IF(F4100,1,IF(F4=76,2,IF(F4=51,3,"Unspecified" )))

Mike

"Office_Novice" wrote:

Where did i go wrong?

=IF(F4=' 100',"1",)OR(F4='76 - 100',"2",)OR(F4='51 - 75',"3",)OR(F4='26 -
50',"4",)OR(F4='< 25',"5")

Basically€¦

If F4 is equal €˜ 100 then display a 1 or, if F4 is equal to 76 €“ 100
then display a 2 or, if F4 is equal to 51 €“ 75 then display a 3

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Easy Worksheet Function help

=(F4=" 100")*1+(F4="76 - 100")*2+(F4="51 - 75")*3+(F4="26 - 50")*4+(F4="<
25")*5

--
Gary''s Student - gsnu200784


"Office_Novice" wrote:

Where did i go wrong?

=IF(F4=' 100',"1",)OR(F4='76 - 100',"2",)OR(F4='51 - 75',"3",)OR(F4='26 -
50',"4",)OR(F4='< 25',"5")

Basically€¦

If F4 is equal €˜ 100 then display a 1 or, if F4 is equal to 76 €“ 100
then display a 2 or, if F4 is equal to 51 €“ 75 then display a 3

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Easy Worksheet Function help

Try this:

=SUM((F4={" 100","76 - 100","51 - 75","26 - 50","< 25"})*{1,2,3,4,5})


Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"Office_Novice" wrote in message
...
Where did i go wrong?

=IF(F4=' 100',"1",)OR(F4='76 - 100',"2",)OR(F4='51 - 75',"3",)OR(F4='26 -
50',"4",)OR(F4='< 25',"5")

Basically.

If F4 is equal ' 100' then display a 1 or, if F4 is equal to '76 - 100'
then display a 2 or, if F4 is equal to '51 - 75' then display a 3


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Easy Worksheet Function help

Assuming your entries in the cell are text strings as shown (for example,
the cell contains the text "51 - 75", without the quote marks and without
the apostrophes that your examples show, and not an actual value between 51
and 75), this formula will return the results you want...

=MATCH(LEFT(A1),{"","7","5","2","<"},0)

Rick


"Office_Novice" wrote in message
...
Where did i go wrong?

=IF(F4=' 100',"1",)OR(F4='76 - 100',"2",)OR(F4='51 - 75',"3",)OR(F4='26 -
50',"4",)OR(F4='< 25',"5")

Basically€¦

If F4 is equal €˜ 100 then display a 1 or, if F4 is equal to 76 €“ 100
then display a 2 or, if F4 is equal to 51 €“ 75 then display a 3




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Easy Worksheet Function help

By the way... in your listing of ranges, the value 25 is not covered in any
of them. Perhaps the last range should be '<=25' (note the equal sign)
rather then '<25'.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Assuming your entries in the cell are text strings as shown (for example,
the cell contains the text "51 - 75", without the quote marks and without
the apostrophes that your examples show, and not an actual value between
51 and 75), this formula will return the results you want...

=MATCH(LEFT(A1),{"","7","5","2","<"},0)

Rick


"Office_Novice" wrote in message
...
Where did i go wrong?

=IF(F4=' 100',"1",)OR(F4='76 - 100',"2",)OR(F4='51 -
75',"3",)OR(F4='26 -
50',"4",)OR(F4='< 25',"5")

Basically€¦

If F4 is equal €˜ 100 then display a 1 or, if F4 is equal to 76 €“ 100
then display a 2 or, if F4 is equal to 51 €“ 75 then display a 3



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
HELP please... easy function JoZo Excel Worksheet Functions 3 December 5th 09 04:59 PM
easy function quesiton Dylan @ UAFC[_2_] Excel Worksheet Functions 2 January 20th 09 07:28 PM
Easy IF Function pau1a via OfficeKB.com Excel Discussion (Misc queries) 1 March 24th 06 01:36 AM
Function question (probably easy) Dahlman Excel Discussion (Misc queries) 4 April 4th 05 03:09 PM
Easy function question Dahlman Excel Discussion (Misc queries) 2 March 31st 05 12:35 AM


All times are GMT +1. The time now is 08:28 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"