Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default If statement or lookup statement not sure

Hi gang:
Well here is what I'm try to do.
I have 3 columns on a worksheet named shipping. column A (greater then)
contains values from 0 to 50,000.
Columns B (Less than) contains values from 5 to 51,000.
Column C is the shipping amount. On another worksheet I have an order form
and want to compare the total order with the shipping cost to provide a
total cost.
I would like the order form to lookup shipping amounts either greater then
but less then and come up with the amount from Column C.
I have tried the following If G15 is greater then column But Less then
column B then Column C.
All I get is an error #name.
Is this possible or do I need to change the way this is layed out. I'm
trying to transfer this from a paper form to computer form in excell.
Any help would be greatly appericated.
Thanks.
Cliff.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default If statement or lookup statement not sure

You only need to look at column A. I assime you values are in order like this

1 5 123
6 10 456
7 20 789


Looking at Column A the formula below will return for any value 1<=x<6 the
number 123. You don't need to look at the value 5 in Column B.

=VLOOKUP(D7,Sheet1!A2:C10,3,TRUE)

Looks up 1 in column A, and returns the value from column C (the third
parameter 3) in the same row.

If an exact match is not found, the next largest value that is less than
lookup_value is returned. If FALSE, VLOOKUP will find an exact match

"Renegade40" wrote:

Hi gang:
Well here is what I'm try to do.
I have 3 columns on a worksheet named shipping. column A (greater then)
contains values from 0 to 50,000.
Columns B (Less than) contains values from 5 to 51,000.
Column C is the shipping amount. On another worksheet I have an order form
and want to compare the total order with the shipping cost to provide a
total cost.
I would like the order form to lookup shipping amounts either greater then
but less then and come up with the amount from Column C.
I have tried the following If G15 is greater then column But Less then
column B then Column C.
All I get is an error #name.
Is this possible or do I need to change the way this is layed out. I'm
trying to transfer this from a paper form to computer form in excell.
Any help would be greatly appericated.
Thanks.
Cliff.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default If statement or lookup statement not sure

Works like a charm. I did not realize there was a way to search all three
columns at once. Thanks very much..

"Joel" wrote:

You only need to look at column A. I assime you values are in order like this

1 5 123
6 10 456
7 20 789


Looking at Column A the formula below will return for any value 1<=x<6 the
number 123. You don't need to look at the value 5 in Column B.

=VLOOKUP(D7,Sheet1!A2:C10,3,TRUE)

Looks up 1 in column A, and returns the value from column C (the third
parameter 3) in the same row.

If an exact match is not found, the next largest value that is less than
lookup_value is returned. If FALSE, VLOOKUP will find an exact match

"Renegade40" wrote:

Hi gang:
Well here is what I'm try to do.
I have 3 columns on a worksheet named shipping. column A (greater then)
contains values from 0 to 50,000.
Columns B (Less than) contains values from 5 to 51,000.
Column C is the shipping amount. On another worksheet I have an order form
and want to compare the total order with the shipping cost to provide a
total cost.
I would like the order form to lookup shipping amounts either greater then
but less then and come up with the amount from Column C.
I have tried the following If G15 is greater then column But Less then
column B then Column C.
All I get is an error #name.
Is this possible or do I need to change the way this is layed out. I'm
trying to transfer this from a paper form to computer form in excell.
Any help would be greatly appericated.
Thanks.
Cliff.

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
If or lookup Statement Chey Excel Discussion (Misc queries) 2 October 24th 08 08:33 PM
Multiple If (Lookup?) Statement Teri Excel Worksheet Functions 7 January 31st 07 06:44 PM
Advanced IF statement / LOOKUP Jane Excel Worksheet Functions 4 December 8th 06 03:14 PM
Lookup/if statement? Connie Excel Discussion (Misc queries) 5 August 16th 05 11:57 PM
If statement / Vlookup / Lookup Matt Excel Worksheet Functions 2 March 22nd 05 07:26 PM


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