#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Tom Ogilvy

Tom
thanks worked perfectly..
now can we expand a bit....

if in a cell had text that said STAT then do the same search to the same
page
"zip codes and search for the two zips but get lets say cell E1.
the point here is that there are different rates for the same pair of zip
codes

is it possible to send my workbook to you so you can see what I am doing

thanks
David Poe

Assume the "mileage box" is on a sheet named mileage with the data in
A1:C2000. In C1 of the creator page:

=Sum(-(Mileage!$A$1:$A$2000=A1),-(Mileage!$B$1:$B$2000=B1),Mileage!$C
$1:$C$2000)

if the zips may be reversed

=Max(Sumproduct(-(Mileage!$A$1:$A$2000=A1),-(Mileage!$B$1:$B$2000=B1),Mileag
e!$C$1:$C$2000),Sumproduct(-(Mileage!$A$1:$A$2000=B1),-(Mileage!$B$1:$B$2000
=A1),Mileage!$C$1:$C$2000))


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Tom Ogilvy

Sure, send it to me.

--
Regards,
Tom Ogilvy

"David Joseph" wrote in message
. com...
Tom
thanks worked perfectly..
now can we expand a bit....

if in a cell had text that said STAT then do the same search to the same
page
"zip codes and search for the two zips but get lets say cell E1.
the point here is that there are different rates for the same pair of zip
codes

is it possible to send my workbook to you so you can see what I am doing

thanks
David Poe

Assume the "mileage box" is on a sheet named mileage with the data in
A1:C2000. In C1 of the creator page:

=Sum(-(Mileage!$A$1:$A$2000=A1),-(Mileage!$B$1:$B$2000=B1),Mileage!$C
$1:$C$2000)

if the zips may be reversed


=Max(Sumproduct(-(Mileage!$A$1:$A$2000=A1),-(Mileage!$B$1:$B$2000=B1),Mileag

e!$C$1:$C$2000),Sumproduct(-(Mileage!$A$1:$A$2000=B1),-(Mileage!$B$1:$B$2000
=A1),Mileage!$C$1:$C$2000))




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
Tom Ogilvy Denny Crane Excel Worksheet Functions 2 March 15th 06 08:41 PM
Thank You Tom Ogilvy Brian Excel Worksheet Functions 0 December 16th 04 02:47 AM
Reply to Tom Ogilvy Robert Driver Excel Programming 2 April 7th 04 04:48 PM
Help Tom Ogilvy [email protected] Excel Programming 9 January 18th 04 11:18 PM
Tom Ogilvy:Object Error Still Rhonda[_3_] Excel Programming 0 December 10th 03 02:53 PM


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