Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.links
external usenet poster
 
Posts: 9
Default Manipulating ranges in a different file

Hello,

My excel file collects information from another excel file, where I
have three columns: start_time, end_time, and another cell that is
suppose to contain a name of the person. Within one range (3-250) I
need to subtract end_time from start_time and see if it's less than 16
minutes, if so, if the third cell, does not contain the name, I need
to count all the occurances and record the number into the cell of the
correct file.


I cannot quite figure out how to perform subtraction within the range
(in this case: column G - column F):

=SUMPRODUCT(--(('path[FileA.xls]Tab1'!G3:G250 [...???...]
TIME(0,15,59))*(LEN('path[FileA.xls]Tab1'!Q3:Q250)=0)))


Thanks a ton for your advice!

  #2   Report Post  
Posted to microsoft.public.excel.links
external usenet poster
 
Posts: 473
Default Manipulating ranges in a different file

Lenchik wrote:
=SUMPRODUCT(--(('path[FileA.xls]Tab1'!G3:G250 [...???...]
TIME(0,15,59))*(LEN('path[FileA.xls]Tab1'!Q3:Q250)=0)))


I use array formulas rather than SUMPRODUCT and would think this would
work (entered with Ctrl+Shift+Enter):

=SUM((('path[FileA.xls]Tab1'!G3:G250-'path[FileA.xls]Tab1'!F3:F250)
=TIME(0,16,0))*(LEN('path[FileA.xls]Tab1'!Q3:Q250)=0))


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

  #3   Report Post  
Posted to microsoft.public.excel.links
external usenet poster
 
Posts: 2,344
Default Manipulating ranges in a different file

Hi,

Here is the basic idea

=SUMPRODUCT(--((D9:D24-E9:E24)<(16/1440)),--(F9:F24=""))

You will need to adjust for the path to the other file, but the end time is
in the range D9:d24 the start time in E9:E24, 16/1440 is the fraction that
represents 16 minutes, F9:F24 is the cells that may not contain anything.


If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire


"Lenchik" wrote:

Hello,

My excel file collects information from another excel file, where I
have three columns: start_time, end_time, and another cell that is
suppose to contain a name of the person. Within one range (3-250) I
need to subtract end_time from start_time and see if it's less than 16
minutes, if so, if the third cell, does not contain the name, I need
to count all the occurances and record the number into the cell of the
correct file.


I cannot quite figure out how to perform subtraction within the range
(in this case: column G - column F):

=SUMPRODUCT(--(('path[FileA.xls]Tab1'!G3:G250 [...???...]
TIME(0,15,59))*(LEN('path[FileA.xls]Tab1'!Q3:Q250)=0)))


Thanks a ton for your advice!


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
Manipulating ranges in a different excel file Lenchik Excel Worksheet Functions 3 October 13th 08 03:51 AM
Manipulating Arrays Alan Beban[_2_] Excel Worksheet Functions 0 November 8th 07 09:10 PM
Linking to ranges in another file HBj Excel Worksheet Functions 0 September 6th 07 03:07 PM
Can Named ranges be used in file link formulae? Philip J Smith Excel Worksheet Functions 3 April 10th 06 01:26 PM
Manipulating shapes thePriest Excel Discussion (Misc queries) 0 April 20th 05 06:41 PM


All times are GMT +1. The time now is 09:16 PM.

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"