Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bigfoot17
 
Posts: n/a
Default Numbers vs Text search

I am sure someone could abbreviate this lengthy formula for me and I'd be
appreciative, but my real problem is more perplexing to me. Here is the

formula:

=SUMPRODUCT(--('[FILE.xls]Sheet1'!$I$2:$I$1800=10),'[FILE.xls]Sheet1'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet2'!$I$2:$I$1800=10),'[FILE.xls]Sheet2'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet3'!$I$2:$I$1800=10),'[FILE.xls]Sheet3'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet4'!$I$2:$I$1800=10),'[FILE.xls]Sheet4'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet5'!$I$2:$I$1800=10),'[FILE.xls]Sheet5'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet6'!$I$2:$I$1800=10),'[FILE.xls]Sheet6'!$U$2:$U$1800)

The =10 refers to an office number, and the above gets me the information I
need when the offices are numeric (10-19), but now they have offices 1A, 1B

and 1C, etc as well and the above does not work. I do not control the input
or format of FILE.xls. Any suggestions are welcome.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Numbers vs Text search

Didn't this kind of change work for you:

=SUMPRODUCT(--('[FILE.xls]Sheet1'!$I$2:$I$1800="1A"),
'[FILE.xls]Sheet1'!$U$2:$U$1800)
+.........

Would it be worth it to create another worksheet in file.xls that contains the
formulas you need.

Then you could just point at the cells you need.

It might make it quicker when file.xls is closed, too.

Bigfoot17 wrote:

I am sure someone could abbreviate this lengthy formula for me and I'd be
appreciative, but my real problem is more perplexing to me. Here is the

formula:

=SUMPRODUCT(--('[FILE.xls]Sheet1'!$I$2:$I$1800=10),'[FILE.xls]Sheet1'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet2'!$I$2:$I$1800=10),'[FILE.xls]Sheet2'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet3'!$I$2:$I$1800=10),'[FILE.xls]Sheet3'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet4'!$I$2:$I$1800=10),'[FILE.xls]Sheet4'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet5'!$I$2:$I$1800=10),'[FILE.xls]Sheet5'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet6'!$I$2:$I$1800=10),'[FILE.xls]Sheet6'!$U$2:$U$1800)

The =10 refers to an office number, and the above gets me the information I
need when the offices are numeric (10-19), but now they have offices 1A, 1B

and 1C, etc as well and the above does not work. I do not control the input
or format of FILE.xls. Any suggestions are welcome.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bigfoot17
 
Posts: n/a
Default Numbers vs Text search

Thanks for taking the time to help out. However, ="1A" does not pull the
information like =10 does.

I do not have control over file.xls so I cannot create another worksheet in
it. If I could I would replace the text office number 1A with 17 and enter
that into my formula and it would work fine.

"Dave Peterson" wrote:

Didn't this kind of change work for you:

=SUMPRODUCT(--('[FILE.xls]Sheet1'!$I$2:$I$1800="1A"),
'[FILE.xls]Sheet1'!$U$2:$U$1800)
+.........

Would it be worth it to create another worksheet in file.xls that contains the
formulas you need.

Then you could just point at the cells you need.

It might make it quicker when file.xls is closed, too.

Bigfoot17 wrote:

I am sure someone could abbreviate this lengthy formula for me and I'd be
appreciative, but my real problem is more perplexing to me. Here is the

formula:

=SUMPRODUCT(--('[FILE.xls]Sheet1'!$I$2:$I$1800=10),'[FILE.xls]Sheet1'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet2'!$I$2:$I$1800=10),'[FILE.xls]Sheet2'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet3'!$I$2:$I$1800=10),'[FILE.xls]Sheet3'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet4'!$I$2:$I$1800=10),'[FILE.xls]Sheet4'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet5'!$I$2:$I$1800=10),'[FILE.xls]Sheet5'!$U$2:$U$1800)
+SUMPRODUCT(--('[FILE.xls]Sheet6'!$I$2:$I$1800=10),'[FILE.xls]Sheet6'!$U$2:$U$1800)

The =10 refers to an office number, and the above gets me the information I
need when the offices are numeric (10-19), but now they have offices 1A, 1B

and 1C, etc as well and the above does not work. I do not control the input
or format of FILE.xls. Any suggestions are welcome.


--

Dave Peterson

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
search for text within text BigDave Excel Worksheet Functions 2 November 17th 05 08:30 PM
How to reformat numbers stored as text (apostrophe at beginning) Dave Excel Discussion (Misc queries) 1 May 11th 05 02:34 AM
How do I search for text within text? Dave Bailey Excel Discussion (Misc queries) 1 March 17th 05 08:19 AM
roundoff when converting text to numbers Jack Excel Worksheet Functions 3 January 30th 05 01:51 AM


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