Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Need help with a formula

Monthly I have a sheet that has columns of Accounting Units. They are spread
all over the sheet. What I need to do is add up the numbers next to those
accounting units. Such as Unit 89900 maybe in Column A Row 1 and in Column E
Row 5 and in Column Z Row 22. The important number is is the column next to
those. So how can I write a formula where excel looks over they entire sheet
and where ever it finds Unit 89900 it will add up the contents in the cell
next to it?

Sheesh I'm not even sure I can understand what I am asking...



*sigh*
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Need help with a formula

Hi

assuming that all columns which have text have no values, and all columns
with values have no text, then
=SUMPRODUCT(--(A1:Y22="unit89900"),B1:Z22)

Note ranges are of equal size, but offset by one column
--
Regards
Roger Govier

"dernspiker" wrote in message
...
Monthly I have a sheet that has columns of Accounting Units. They are
spread
all over the sheet. What I need to do is add up the numbers next to those
accounting units. Such as Unit 89900 maybe in Column A Row 1 and in
Column E
Row 5 and in Column Z Row 22. The important number is is the column next
to
those. So how can I write a formula where excel looks over they entire
sheet
and where ever it finds Unit 89900 it will add up the contents in the cell
next to it?

Sheesh I'm not even sure I can understand what I am asking...



*sigh*


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Need help with a formula

On Jul 1, 11:51*am, dernspiker
wrote:
Monthly I have a sheet that has columns of Accounting Units. *They are spread
all over the sheet. *What I need to do is add up the numbers next to those
accounting units. *Such as Unit 89900 maybe in Column A Row 1 and in Column E
Row 5 and in Column Z Row 22. *The important number is is the column next to
those. So how can I write a formula where excel looks over they entire sheet
and where ever it finds Unit 89900 it will add up the contents in the cell
next to it?

Sheesh I'm not even sure I can understand what I am asking...

*sigh*


= {SUM( IF(A2:Z1000 = "Unit 89900", B2:AA1000, "") )}
the sum range is shifted 1 column from search range
enter as array formula
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



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