Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Post Applying Number to Range.

Please help to Create Formula for Below:

I have to put Marks for result obtain.

If Cell E12 is between 33 & 41 E15 should return 4
If Cell E12 is between 34 & 42 E15 should return 3

Please help........................
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Abid Raza View Post
Please help to Create Formula for Below:

I have to put Marks for result obtain.

If Cell E12 is between 33 & 41 E15 should return 4
If Cell E12 is between 34 & 42 E15 should return 3

Please help........................
Hi,

I'm not sure I fully understand what you're trying to do here.

There appears to be an overlap. If the value in cell E12 was 34 to 41 it could fall within either of the two conditions and therefore could result in either 4 or 3 in cell E15.

Which would it be?
  #3   Report Post  
Junior Member
 
Posts: 2
Wink

Quote:
Originally Posted by Spencer101 View Post
Hi,

I'm not sure I fully understand what you're trying to do here.

There appears to be an overlap. If the value in cell E12 was 34 to 41 it could fall within either of the two conditions and therefore could result in either 4 or 3 in cell E15.

Which would it be?
If Cell E12 is between 33 & 41 E15 should return 4
If Cell E12 is between 34 & 42 E15 should return 3

O.K., Can we defined ranges as:
1. below 33 0 Point
2. 33-34 3 Point
3. 34-41 4 Point
4. 41-42 3 Point
5. Above 42 0 Point

Hope this makes easy to solve...........
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 587
Default Applying Number to Range.

hi Abid Raza,

if cell E12 = 40, what the outcome will, 3 or 4?


--
isabelle



Le 2012-06-02 11:42, Abid Raza a écrit :
Please help to Create Formula for Below:

I have to put Marks for result obtain.

If Cell E12 is between 33& 41 E15 should return 4
If Cell E12 is between 34& 42 E15 should return 3

Please help........................




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 587
Default Applying Number to Range.

hi Abid Raza,

if cell E12 = 34, outcome will 3 or 4?
if cell E12 = 41, outcome will 3 or 4?

--
isabelle



Le 2012-06-02 17:28, Abid Raza a écrit :
Spencer101;1602317 Wrote:
Hi,

I'm not sure I fully understand what you're trying to do here.

There appears to be an overlap. If the value in cell E12 was 34 to 41
it could fall within either of the two conditions and therefore could
result in either 4 or 3 in cell E15.

Which would it be?


If Cell E12 is between 33& 41 E15 should return 4
If Cell E12 is between 34& 42 E15 should return 3

O.K., Can we defined ranges as:
1. below 33 0 Point
2. 33-34 3 Point
3. 34-41 4 Point
4. 41-42 3 Point
5. Above 42 0 Point

Hope this makes easy to solve...........






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Applying Number to Range.

On Sat, 2 Jun 2012 21:28:16 +0000, Abid Raza wrote:

If Cell E12 is between 33 & 41 E15 should return 4
If Cell E12 is between 34 & 42 E15 should return 3

O.K., Can we defined ranges as:
1. below 33 0 Point
2. 33-34 3 Point
3. 34-41 4 Point
4. 41-42 3 Point
5. Above 42 0 Point

Hope this makes easy to solve...........


It does not make it easy. Your problem is not possible to solve as stated because you continue to define overlapping ranges.

By that I mean your table shows two different outcomes given the same value in E12.

Your Line 2. shows that 34 -- 3 point
but your Line 3. shows 34 -- 4 point

Also

Your Line 3. shows that 41 -- 4 point
but your Line 4. shows 41 -- 3 point.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 259
Default Applying Number to Range.

Abid

I'm not sure how to ties all 3 of these into one neat package, but you
could use helper cell hidden off-screen somewhere and have E15 point to
the cell the shows the sum of the following:


BETWEEN 33 & 34 "=IF(AND(E$12<35,E$1232),3,0)"
BETWEEN 35 & 40 "=IF(AND(E$12<41,E$1234),4,0)"
BETWEEN 41 & 42 "=IF(AND(E$12<43,E$1240),3,0)"

Now lets assume your helper cells are Z1 to Z4

Z1 = "=IF(AND(E$12<35,E$1232),3,0)"
Z2 = "=IF(AND(E$12<41,E$1234),4,0)"
Z3 = "=IF(AND(E$12<43,E$1240),3,0)"
Z4 = "=SUM(Z1:Z3)

E15 = "=Z4"

Don't forget to remove the quote wrapping from the formula's.

This works well if you want to go down the track of using the helper
cell scenario, else hang on until someone else comes up with another
shorter, more direct idea.

Cheers

HTH
Mick.
  #8   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Abid Raza View Post
If Cell E12 is between 33 & 41 E15 should return 4
If Cell E12 is between 34 & 42 E15 should return 3

O.K., Can we defined ranges as:
1. below 33 0 Point
2. 33-34 3 Point
3. 34-41 4 Point
4. 41-42 3 Point
5. Above 42 0 Point

Hope this makes easy to solve...........
Hi, there is still some overlap (i.e. 34 could be 3 or 4 points, as could 41) but I've made some assumptions (above 34 and below 41 would be 4 points) and come up with this nested IF approach to be pasted into cell E15.

=IF(E12="","",IF(E12<33,0,IF(AND(E12=33,E12<=34), 3,IF(AND(E1234,E12<41),4,IF(AND(E12=41,E12<=42), 3,IF(E1242,0))))))

It may need some tinkering if my assumptions are incorrect, but it's easy enough to do.

I was thinking this might be easier with a lookup table (the formula would certainly be shorter and easier to read) but you don't specify what the lower and upper ranges would be, or if there may be decimal points.

This approach, although a long formula, will take care of all of that.

Let me know if it works for you.

S.
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 259
Default Applying Number to Range.

On 3/06/2012 2:10 PM, Vacuum Sealed wrote:
Abid

I'm not sure how to ties all 3 of these into one neat package, but you
could use helper cell hidden off-screen somewhere and have E15 point to
the cell the shows the sum of the following:


BETWEEN 33 & 34 "=IF(AND(E$12<35,E$1232),3,0)"
BETWEEN 35 & 40 "=IF(AND(E$12<41,E$1234),4,0)"
BETWEEN 41 & 42 "=IF(AND(E$12<43,E$1240),3,0)"

Now lets assume your helper cells are Z1 to Z4

Z1 = "=IF(AND(E$12<35,E$1232),3,0)"
Z2 = "=IF(AND(E$12<41,E$1234),4,0)"
Z3 = "=IF(AND(E$12<43,E$1240),3,0)"
Z4 = "=SUM(Z1:Z3)

E15 = "=Z4"

Don't forget to remove the quote wrapping from the formula's.

This works well if you want to go down the track of using the helper
cell scenario, else hang on until someone else comes up with another
shorter, more direct idea.

Cheers

HTH
Mick.


And after spending some time away to mull over it, here's the short version.

=IF(AND(E12<35,E1232),3,IF(AND(E12<41,E1234),4,I F(AND(E12<43,E1240),3,0)))

HTH
Mick

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Applying Number to Range.

Hi Mick,

Am Sun, 03 Jun 2012 18:48:28 +1000 schrieb Vacuum Sealed:

=IF(AND(E12<35,E1232),3,IF(AND(E12<41,E1234),4,I F(AND(E12<43,E1240),3,0)))


a little bit shorter ;-)
=IF(OR(E12<33,E1242),0,IF(OR(E12={33;34;41;42}),3 ,4))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Applying Number to Range.

Hi,

Am Sun, 3 Jun 2012 11:04:17 +0200 schrieb Claus Busch:

=IF(OR(E12<33,E1242),0,IF(OR(E12={33;34;41;42}),3 ,4))


for your language version, I have to change semicolon to comma:
=IF(OR(E12<33,E1242),0,IF(OR(E12={33,34,41,42}),3 ,4))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Applying Number to Range.

On Sat, 02 Jun 2012 23:01:46 -0400, Ron Rosenfeld wrote:

On Sat, 2 Jun 2012 21:28:16 +0000, Abid Raza wrote:

If Cell E12 is between 33 & 41 E15 should return 4
If Cell E12 is between 34 & 42 E15 should return 3

O.K., Can we defined ranges as:
1. below 33 0 Point
2. 33-34 3 Point
3. 34-41 4 Point
4. 41-42 3 Point
5. Above 42 0 Point

Hope this makes easy to solve...........


It does not make it easy. Your problem is not possible to solve as stated because you continue to define overlapping ranges.

By that I mean your table shows two different outcomes given the same value in E12.

Your Line 2. shows that 34 -- 3 point
but your Line 3. shows 34 -- 4 point

Also

Your Line 3. shows that 41 -- 4 point
but your Line 4. shows 41 -- 3 point.


If your break points are really as follows:

<33 0

33 to <35 3
35 to <41 4
41 to 42 3
42 0


then you could try:

=VLOOKUP(E12,{-1E+307,0;33,3;35,4;41,3;42.0000000000001,0},2)

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
Applying formula to variable number of rows Shikha Excel Worksheet Functions 5 March 3rd 09 02:32 PM
Applying Conditional Formatting to a Max number in range SunshineinFt.Myers Excel Worksheet Functions 5 February 24th 09 02:43 AM
Applying Offset to Range in VBA [email protected] Excel Worksheet Functions 2 June 21st 06 04:01 AM
Applying number format from referenced cell DBS Excel Discussion (Misc queries) 2 January 5th 06 02:44 PM
Number Applying Value To Text Selection In List Box ANDYPAND New Users to Excel 2 July 19th 05 03:56 PM


All times are GMT +1. The time now is 04:11 PM.

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"