Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Add certain cells given specific criteria

On sheet 1 Column1 is a date function that returns the number of months sales
have come in, it is formatted as a number. On the same sheet in Column 2 I
want to sum the sales from another sheet ('PTD Comp Finney'!).

Sheet 1 Data
Column 1 Column 2
0 =IFERROR('PTD Comp Finney'!D16," ") - This is correct

1 =IFERROR('PTD Comp Finney'!D16," ") - If column 1=1, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D17," ")

2 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=2, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D18," ")

3 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=3, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D19," ")

4 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=4, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D20," ")

5 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=5, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D21," ")

and so on...

Any help would be most appreciated.
--
cheers,
Heather
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default Add certain cells given specific criteria

Put this in B1
=IFERROR(SUM(INDIRECT("'PTD Comp Finney'!D16:D"&(16+A1))),"")

By putting appropriate number in A1 (0,1,2,...) you will get the answer you
want in B1

You can also copy this down and get different answers by putting different
numbers in Col A

"hcronrath" wrote:

On sheet 1 Column1 is a date function that returns the number of months sales
have come in, it is formatted as a number. On the same sheet in Column 2 I
want to sum the sales from another sheet ('PTD Comp Finney'!).

Sheet 1 Data
Column 1 Column 2
0 =IFERROR('PTD Comp Finney'!D16," ") - This is correct

1 =IFERROR('PTD Comp Finney'!D16," ") - If column 1=1, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D17," ")

2 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=2, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D18," ")

3 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=3, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D19," ")

4 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=4, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D20," ")

5 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=5, then I
want to calculate =IFERROR('PTD Comp Finney'!D16:D21," ")

and so on...

Any help would be most appreciated.
--
cheers,
Heather

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Add certain cells given specific criteria

I think what you want to do is something like this:

=IFERROR(SUM(INDIRECT("'PTD Comp Finney'!D16:D"&16+A1)),"")

and then copy down.

Hope this helps.

Pete

On Feb 26, 7:35*pm, hcronrath
wrote:
On sheet 1 Column1 is a date function that returns the number of months sales
have come in, it is formatted as a number. *On the same sheet in Column 2 I
want to sum the sales from another sheet ('PTD Comp Finney'!).

Sheet 1 Data
Column 1 *Column 2
0 * * * * * * =IFERROR('PTD Comp Finney'!D16," ") - This is correct

1 * * * * * * =IFERROR('PTD Comp Finney'!D16," ") - If column 1=1, then I
want to calculate *=IFERROR('PTD Comp Finney'!D16:D17," ")

2 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=2, then I
want to calculate *=IFERROR('PTD Comp Finney'!D16:D18," ")

3 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=3, then I
want to calculate *=IFERROR('PTD Comp Finney'!D16:D19," ")

4 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=4, then I
want to calculate *=IFERROR('PTD Comp Finney'!D16:D20," ")

5 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=5, then I
want to calculate *=IFERROR('PTD Comp Finney'!D16:D21," ")

and so on...

Any help would be most appreciated.
--
cheers,
Heather


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
Import data to specific cells for a specific row Netta Excel Discussion (Misc queries) 0 January 27th 09 04:23 PM
add cells on multiple worksheets using specific criteria edwgolz Excel Worksheet Functions 2 April 18th 08 09:59 PM
Identify the row with specific criteria Billy L[_2_] Excel Worksheet Functions 5 January 8th 08 02:06 AM
Sum rows if two columns = specific criteria. Jeff Excel Worksheet Functions 2 February 2nd 06 12:29 AM
Linking data that contains specific row criteria Teri Excel Worksheet Functions 1 April 5th 05 05:30 PM


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