Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Vlookup and rounding

1,000 $2
2,000 $2.50
3,000 $2.75
4,000 $2.89

When I am looking for 2,500 it is giving me 2.50 and I need it to return 2.75

By formula is =VLOOKUP(K15,Information!AE2:AF1001,2) Where K15 is the
"2,500". How can I make K15 round up to the next thousand so I will get 2.75?

TIA

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Vlookup and rounding

On Wed, 20 Jan 2010 13:53:02 -0800, excelrookie
wrote:

1,000 $2
2,000 $2.50
3,000 $2.75
4,000 $2.89

When I am looking for 2,500 it is giving me 2.50 and I need it to return 2.75

By formula is =VLOOKUP(K15,Information!AE2:AF1001,2) Where K15 is the
"2,500". How can I make K15 round up to the next thousand so I will get 2.75?

TIA


Try the CEILING formula.

Replace K15 with

=CEILING(K15,1000)

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default Vlookup and rounding

"excelrookie" wrote:
By formula is =VLOOKUP(K15,Information!AE2:AF1001,2)
Where K15 is the "2,500". How can I make K15 round up
to the next thousand so I will get 2.75?


Ostensibly:

=VLOOKUP(ROUNDUP(K15,-3),Information!AE2:AF1001,2)

But perhaps your table could be constructed differently, to wit:

0 $2
1000 $2.50
2000 $2.75
3000 $2.89

If you want a lookup of 1000 to return $2 instead of $2.50, change 1000 in
the table to something appropriate. "Something appropriate" depends on the
precision that you need. For example, if the lookup value is an integer,
then:

0 $2
1001 $2.50
2001 $2.75
3001 $2.89

If the lookup value has a precision of 2 decimal places, then:

0 $2
1000.01 $2.50
2000.01 $2.75
3000.01 $2.89

Each of these solutions, including your original method, has it pros and cons.


----- original message -----

"excelrookie" wrote:
1,000 $2
2,000 $2.50
3,000 $2.75
4,000 $2.89

When I am looking for 2,500 it is giving me 2.50 and I need it to return 2.75

By formula is =VLOOKUP(K15,Information!AE2:AF1001,2) Where K15 is the
"2,500". How can I make K15 round up to the next thousand so I will get 2.75?

TIA

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Vlookup and rounding

Thanks Joe, The first one did it!! I didn't create the table I am using and
it has 1,000's of entries so I would prefer not to change them all :)

"Joe User" wrote:

"excelrookie" wrote:
By formula is =VLOOKUP(K15,Information!AE2:AF1001,2)
Where K15 is the "2,500". How can I make K15 round up
to the next thousand so I will get 2.75?


Ostensibly:

=VLOOKUP(ROUNDUP(K15,-3),Information!AE2:AF1001,2)

But perhaps your table could be constructed differently, to wit:

0 $2
1000 $2.50
2000 $2.75
3000 $2.89

If you want a lookup of 1000 to return $2 instead of $2.50, change 1000 in
the table to something appropriate. "Something appropriate" depends on the
precision that you need. For example, if the lookup value is an integer,
then:

0 $2
1001 $2.50
2001 $2.75
3001 $2.89

If the lookup value has a precision of 2 decimal places, then:

0 $2
1000.01 $2.50
2000.01 $2.75
3000.01 $2.89

Each of these solutions, including your original method, has it pros and cons.


----- original message -----

"excelrookie" wrote:
1,000 $2
2,000 $2.50
3,000 $2.75
4,000 $2.89

When I am looking for 2,500 it is giving me 2.50 and I need it to return 2.75

By formula is =VLOOKUP(K15,Information!AE2:AF1001,2) Where K15 is the
"2,500". How can I make K15 round up to the next thousand so I will get 2.75?

TIA

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Vlookup and rounding

Hi,

Sort the range (assumed in C7:D10) in descending order of column C. Cell
C14 has 2500. You could then try this formula.

=INDEX($C$7:$D$10,MATCH(C14,C7:C10,-1),2)

There are more formula based approached but this is a simple one

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"excelrookie" wrote in message
...
1,000 $2
2,000 $2.50
3,000 $2.75
4,000 $2.89

When I am looking for 2,500 it is giving me 2.50 and I need it to return
2.75

By formula is =VLOOKUP(K15,Information!AE2:AF1001,2) Where K15 is the
"2,500". How can I make K15 round up to the next thousand so I will get
2.75?

TIA

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
vlookup and rounding hmz New Users to Excel 4 November 5th 09 04:51 PM
ROUNDING FORMULA =ROUND(B12/$B$10,1) ROUNDING TO HIGH SunshineinFt.Myers[_2_] Excel Worksheet Functions 7 March 5th 09 06:41 PM
Vlookup rounding up rather than down Steve[_3_] Excel Worksheet Functions 4 March 16th 07 01:38 AM
Vlookup Rounding wmaughan Excel Discussion (Misc queries) 9 December 28th 05 12:00 AM
Rounding criteria within a nested vlookup and hlookup Jay Z Excel Worksheet Functions 1 March 23rd 05 10:34 PM


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