Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Really need help with formula(Excel Office 2003)

In an excel spreadsheet as below: Cell A1 = 53.25. I need a formula in cell
B1 that would find where the 53.25 would fall within columns C and D with a
result from column E. As in 53.25 falls between 46 and 55, so the resulting
'3' would be the answer I need in cell B1. Is there such a formula? I'm
sorry I'm not explaining this scenario well, but I would be forever grateful
for any help.

A B C D E
1 53.25 _____ 26 35 1
2 36 45 2
3 46 55 3
4 56 65 4

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Really need help with formula(Excel Office 2003)

one way:

=SUM(IF(($A$1=$C$1:$C$4)*($A$1<=$D$1:$D$4),$E$1:$ E$4,))

this is an array-formula so insert it with CTRL+SHIFT+ENTER
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Really need help with formula(Excel Office 2003)

You could also use:
=VLOOKUP(A1,C1:E4,3,TRUE)
--
John C


"DebC" wrote:

In an excel spreadsheet as below: Cell A1 = 53.25. I need a formula in cell
B1 that would find where the 53.25 would fall within columns C and D with a
result from column E. As in 53.25 falls between 46 and 55, so the resulting
'3' would be the answer I need in cell B1. Is there such a formula? I'm
sorry I'm not explaining this scenario well, but I would be forever grateful
for any help.

A B C D E
1 53.25 _____ 26 35 1
2 36 45 2
3 46 55 3
4 56 65 4

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Really need help with formula(Excel Office 2003)

in this particular situation also the following works:

=LOOKUP(A1,$C$1:$C$4,E1:E4)

for 10, 27, 37, 55 etc.

and I don't know why

;-)))
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Really need help with formula(Excel Office 2003)

On Wed, 13 Aug 2008 08:23:00 -0700, DebC
wrote:

In an excel spreadsheet as below: Cell A1 = 53.25. I need a formula in cell
B1 that would find where the 53.25 would fall within columns C and D with a
result from column E. As in 53.25 falls between 46 and 55, so the resulting
'3' would be the answer I need in cell B1. Is there such a formula? I'm
sorry I'm not explaining this scenario well, but I would be forever grateful
for any help.

A B C D E
1 53.25 _____ 26 35 1
2 36 45 2
3 46 55 3
4 56 65 4


Given just what you post, all you need is column D:

26
36
46
56

and this formula:

=IF(OR(A1<26,A165),"",MATCH(A1,D1:D4))

--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Really need help with formula(Excel Office 2003)

Thank you so much for responding...actually when I entered the formula, it
gave me the result of 2, and should have been 3. Have I done something
wrong?

"Ron Rosenfeld" wrote:

On Wed, 13 Aug 2008 08:23:00 -0700, DebC
wrote:

In an excel spreadsheet as below: Cell A1 = 53.25. I need a formula in cell
B1 that would find where the 53.25 would fall within columns C and D with a
result from column E. As in 53.25 falls between 46 and 55, so the resulting
'3' would be the answer I need in cell B1. Is there such a formula? I'm
sorry I'm not explaining this scenario well, but I would be forever grateful
for any help.

A B C D E
1 53.25 _____ 26 35 1
2 36 45 2
3 46 55 3
4 56 65 4


Given just what you post, all you need is column D:

26
36
46
56

and this formula:

=IF(OR(A1<26,A165),"",MATCH(A1,D1:D4))

--ron

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Really need help with formula(Excel Office 2003)

Thank you!! This actually worked. I'm not at all sure I understand the
formula, but it gave me the desired result. I appreciate it very much.

"Jarek Kujawa" wrote:

one way:

=SUM(IF(($A$1=$C$1:$C$4)*($A$1<=$D$1:$D$4),$E$1:$ E$4,))

this is an array-formula so insert it with CTRL+SHIFT+ENTER

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Really need help with formula(Excel Office 2003)

and this one worked too. One thing I found with this one, is that if I
replace the 53.25 with a larger number thatn the formula covers, I get a
perpetual "4" for my answer. Smaller #s return N/A, which I expected.
Again, I thank you and everyone who has taken time to help me.

"Jarek Kujawa" wrote:

in this particular situation also the following works:

=LOOKUP(A1,$C$1:$C$4,E1:E4)

for 10, 27, 37, 55 etc.

and I don't know why

;-)))

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Really need help with formula(Excel Office 2003)

On Wed, 13 Aug 2008 11:12:23 -0700, DebC
wrote:

Thank you so much for responding...actually when I entered the formula, it
gave me the result of 2, and should have been 3. Have I done something
wrong?


Perhaps you entered the table reference incorrectly?

Here is my table, and the cell references:

D1 26
D2 36
D3 46
D4 56


Here is the formula:

=IF(OR(A1<26,A165),"",MATCH(A1,D1:D4))

With

A1: 53.25

the formula -- 3
--ron
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Really need help with formula(Excel Office 2003)

yep, that's what I did! thanks, again

"Ron Rosenfeld" wrote:

On Wed, 13 Aug 2008 11:12:23 -0700, DebC
wrote:

Thank you so much for responding...actually when I entered the formula, it
gave me the result of 2, and should have been 3. Have I done something
wrong?


Perhaps you entered the table reference incorrectly?

Here is my table, and the cell references:

D1 26
D2 36
D3 46
D4 56


Here is the formula:

=IF(OR(A1<26,A165),"",MATCH(A1,D1:D4))

With

A1: 53.25

the formula -- 3
--ron

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
Opening an Office 2003 Excel doc with Office 2000 NT Roxy Excel Discussion (Misc queries) 4 February 8th 08 10:54 PM
Opening an Office 2007 Excel file in Office 2003 charstachura Excel Discussion (Misc queries) 1 November 8th 07 09:36 PM
Office 2000/Office 2003 Excel not printing landscape vise versa BAHTTEXT in English text Setting up and Configuration of Excel 1 April 17th 06 01:37 PM
Unable to access the Office Online Web site in Office 2003, Excel Marcy S Excel Discussion (Misc queries) 2 March 21st 06 09:56 PM
Need to convert Office 97 Excel doc to Office 2003! Kim Excel Discussion (Misc queries) 5 June 24th 05 07:20 PM


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