Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default using a table as reference in creating formula

Hi. I need to create a formula that needs to reference a table. I can't
figure out which excel function to use or combine. As an example:

Value to check vs table = 5,250. and the table looks like this:

Range Amount
4,999.99 and below 100
5000 to 5,999.99 125
6000 to 6,999.99 150

Result should be the figures under Amount column.

Will appreciate if anyone can help me with this.

Thanks,
AJ
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default using a table as reference in creating formula

=IF(A1="","",IF(A1<5000,100,IF(A1<6000,125,IF(A1<7 000,150,"undefined"))))
or
=IF(A1="","",LOOKUP(A1,{0,5000,6000,7000},{100,125 ,150,"undefined"}))

"AJ" wrote:

Hi. I need to create a formula that needs to reference a table. I can't
figure out which excel function to use or combine. As an example:

Value to check vs table = 5,250. and the table looks like this:

Range Amount
4,999.99 and below 100
5000 to 5,999.99 125
6000 to 6,999.99 150

Result should be the figures under Amount column.

Will appreciate if anyone can help me with this.

Thanks,
AJ

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default using a table as reference in creating formula

Hi Teethless Mama,

Thanks for your quick reply. Since my reference table has around 30 rows,
do I just continue typing following your pattern or is there a shorter way of
doing this?

Waiting for your reply,
AJ

"Teethless mama" wrote:

=IF(A1="","",IF(A1<5000,100,IF(A1<6000,125,IF(A1<7 000,150,"undefined"))))
or
=IF(A1="","",LOOKUP(A1,{0,5000,6000,7000},{100,125 ,150,"undefined"}))

"AJ" wrote:

Hi. I need to create a formula that needs to reference a table. I can't
figure out which excel function to use or combine. As an example:

Value to check vs table = 5,250. and the table looks like this:

Range Amount
4,999.99 and below 100
5000 to 5,999.99 125
6000 to 6,999.99 150

Result should be the figures under Amount column.

Will appreciate if anyone can help me with this.

Thanks,
AJ

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default using a table as reference in creating formula

Hi

You might find it easier to set the parameters in a table on another sheet
e.g on Sheet2 enter in columns a and B
0 100
5000 125
6000 150
and so on for the 30 or sow rows of values that you have

Then use
=VLOOKUP(A1,Sheet2!A:B,2)

--
Regards
Roger Govier



"AJ" wrote in message
...
Hi Teethless Mama,

Thanks for your quick reply. Since my reference table has around 30 rows,
do I just continue typing following your pattern or is there a shorter way
of
doing this?

Waiting for your reply,
AJ

"Teethless mama" wrote:

=IF(A1="","",IF(A1<5000,100,IF(A1<6000,125,IF(A1<7 000,150,"undefined"))))
or
=IF(A1="","",LOOKUP(A1,{0,5000,6000,7000},{100,125 ,150,"undefined"}))

"AJ" wrote:

Hi. I need to create a formula that needs to reference a table. I
can't
figure out which excel function to use or combine. As an example:

Value to check vs table = 5,250. and the table looks like this:

Range Amount
4,999.99 and below 100
5000 to 5,999.99 125
6000 to 6,999.99 150

Result should be the figures under Amount column.

Will appreciate if anyone can help me with this.

Thanks,
AJ





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default using a table as reference in creating formula

Hi Roger,

I did what you said and it worked.

Many thanks,
Arianne



"Roger Govier" wrote:

Hi

You might find it easier to set the parameters in a table on another sheet
e.g on Sheet2 enter in columns a and B
0 100
5000 125
6000 150
and so on for the 30 or sow rows of values that you have

Then use
=VLOOKUP(A1,Sheet2!A:B,2)

--
Regards
Roger Govier



"AJ" wrote in message
...
Hi Teethless Mama,

Thanks for your quick reply. Since my reference table has around 30 rows,
do I just continue typing following your pattern or is there a shorter way
of
doing this?

Waiting for your reply,
AJ

"Teethless mama" wrote:

=IF(A1="","",IF(A1<5000,100,IF(A1<6000,125,IF(A1<7 000,150,"undefined"))))
or
=IF(A1="","",LOOKUP(A1,{0,5000,6000,7000},{100,125 ,150,"undefined"}))

"AJ" wrote:

Hi. I need to create a formula that needs to reference a table. I
can't
figure out which excel function to use or combine. As an example:

Value to check vs table = 5,250. and the table looks like this:

Range Amount
4,999.99 and below 100
5000 to 5,999.99 125
6000 to 6,999.99 150

Result should be the figures under Amount column.

Will appreciate if anyone can help me with this.

Thanks,
AJ




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
Creating a Cross Reference table/Matrix eaeu090 Excel Discussion (Misc queries) 2 May 9th 07 08:17 AM
Creating a Pivot Table to reference values Noncentz303 Excel Worksheet Functions 1 May 9th 07 01:39 AM
Creating a table from a formula Fiend Excel Discussion (Misc queries) 3 January 27th 06 09:51 PM
Formula using 2 points of reference to return a value from a table MrvinGover Excel Worksheet Functions 6 December 2nd 05 08:36 PM
pivot table : formula to absolute reference a subtotal fax Excel Discussion (Misc queries) 2 November 19th 05 09:28 PM


All times are GMT +1. The time now is 01:14 AM.

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

About Us

"It's about Microsoft Excel"