Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Return Value from cells which match criteria (complex)

I have a worksheet I want to compute mileage on. Right now we're doing
everything manually, but I want to see if I can automate the process in Excel
without resorting to a lot (if any) VB code.

The formula needs to examine 4 columns for the start point, then 43 or so
columns for the destination point. From there it can reference another sheet
with the mileage between two points and insert the correct value.

The logic looks something like this: "Look for data in array a and in array
b then depending on which columns hold the data, lookup the corresponding
result in worksheet x and enter the result in cell y"

Using the If, match and index functions I can get the result I want, but
only for 1 origination and 1 destination. Trying to extrapolate this out to
4*43 is causing a problem. Do I write a VBA function with all the necessary
formulas? Am I missing a function somewhere? I realize this may not be ideal
for Excel, but unfortunately that's what we are limited to using at this
point.

Right now the data entry person is keying in the load in each shipment, then
looking up her table to see where it started and where it ended and putting
in the mileage between points. So no real calculation is being done in the
worksheet in regards to miles, it's a manual lookup right now based on start
and end points.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Return Value from cells which match criteria (complex)

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"NCoppersmith" wrote in message
...
I have a worksheet I want to compute mileage on. Right now we're doing
everything manually, but I want to see if I can automate the process in
Excel
without resorting to a lot (if any) VB code.

The formula needs to examine 4 columns for the start point, then 43 or so
columns for the destination point. From there it can reference another
sheet
with the mileage between two points and insert the correct value.

The logic looks something like this: "Look for data in array a and in
array
b then depending on which columns hold the data, lookup the corresponding
result in worksheet x and enter the result in cell y"

Using the If, match and index functions I can get the result I want, but
only for 1 origination and 1 destination. Trying to extrapolate this out
to
4*43 is causing a problem. Do I write a VBA function with all the
necessary
formulas? Am I missing a function somewhere? I realize this may not be
ideal
for Excel, but unfortunately that's what we are limited to using at this
point.

Right now the data entry person is keying in the load in each shipment,
then
looking up her table to see where it started and where it ended and
putting
in the mileage between points. So no real calculation is being done in
the
worksheet in regards to miles, it's a manual lookup right now based on
start
and end points.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Return Value from cells which match criteria (complex)

In a road atlas you will often see a triangular table like this
showing distances between two cities:

city a b c d e f g
a x
b n x
c n n x
d n n n x
e n n n n x
f n n n n n x
g n n n n n n x

and so on. It is easier if you complete the upper triangle by
reflecting the distances about the diagonal, so that you would have
something like this:

city a b c d e f g
a x n n n n n n
b n x n n n n n
c n n x n n n n
d n n n x n n n
e n n n n x n n
f n n n n n x n
g n n n n n n x


So, if your table of distances is laid out like this on Sheet2,
starting in A1 and going out to column M, then you can have this
formula:

=INDEX(Sheet2!$B$2:$M$14,MATCH(start,Sheet$2!$A$2: $A
$14,0),MATCH(end,Sheet2!$B$1:$M$1))

where start and end are the cells containing the two locations.
Obviously, you need to adjust the ranges to suit your data.

Hope this helps.

Pete


On Mar 8, 3:38*pm, NCoppersmith
wrote:
I have a worksheet I want to compute mileage on. *Right now we're doing
everything manually, but I want to see if I can automate the process in Excel
without resorting to a lot (if any) VB code.

The formula needs to examine 4 columns for the start point, then 43 or so
columns for the destination point. *From there it can reference another sheet
with the mileage between two points and insert the correct value.

The logic looks something like this: "Look for data in array a and in array
b then depending on which columns hold the data, lookup the corresponding
result in worksheet x and enter the result in cell y" *

Using the If, match and index functions I can get the result I want, but
only for 1 origination and 1 destination. *Trying to extrapolate this out to
4*43 is causing a problem. *Do I write a VBA function with all the necessary
formulas? *Am I missing a function somewhere? I realize this may not be ideal
for Excel, but unfortunately that's what we are limited to using at this
point.

Right now the data entry person is keying in the load in each shipment, then
looking up her table to see where it started and where it ended and putting
in the mileage between points. *So no real calculation is being done in the
worksheet in regards to miles, it's a manual lookup right now based on start
and end points. *


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
Match Multiple Criteria and Return values positioned above the zero Sam via OfficeKB.com Excel Worksheet Functions 6 November 26th 09 06:52 PM
Match Criteria & Return Sequential Count Sam via OfficeKB.com Excel Worksheet Functions 8 February 11th 08 03:39 AM
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
Match 3 Criteria and Return Lowest Numeric Value Sam via OfficeKB.com Excel Worksheet Functions 16 April 4th 06 12:19 AM
match multiple criteria & return value from array Tat Excel Worksheet Functions 2 June 21st 05 04:31 PM


All times are GMT +1. The time now is 08:23 AM.

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"