PC Review


Reply
Thread Tools Rate Thread

Add certain cells given specific criteria

 
 
hcronrath
Guest
Posts: n/a
 
      26th Feb 2009
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'!D1617," ")

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

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

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

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

and so on...

Any help would be most appreciated.
--
cheers,
Heather
 
Reply With Quote
 
 
 
 
Sheeloo
Guest
Posts: n/a
 
      26th Feb 2009
Put this in B1
=IFERROR(SUM(INDIRECT("'PTD Comp Finney'!D16"&(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'!D1617," ")
>
> 2 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=2, then I
> want to calculate =IFERROR('PTD Comp Finney'!D1618," ")
>
> 3 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=3, then I
> want to calculate =IFERROR('PTD Comp Finney'!D1619," ")
>
> 4 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=4, then I
> want to calculate =IFERROR('PTD Comp Finney'!D1620," ")
>
> 5 =IFERROR('PTD Comp Finney'!D16," ")- If column 1=5, then I
> want to calculate =IFERROR('PTD Comp Finney'!D1621," ")
>
> and so on...
>
> Any help would be most appreciated.
> --
> cheers,
> Heather

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      28th Feb 2009
I think what you want to do is something like this:

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

and then copy down.

Hope this helps.

Pete

On Feb 26, 7:35*pm, hcronrath <hcronr...@discussions.microsoft.com>
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 Column2 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 iscorrect
>
> 1 * * * * * * =IFERROR('PTD Comp Finney'!D16," ") - If column 1=1, then I
> want to calculate *=IFERROR('PTD Comp Finney'!D1617," ")
>
> 2 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=2, then I
> want to calculate *=IFERROR('PTD Comp Finney'!D1618," ")
>
> 3 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=3, then I
> want to calculate *=IFERROR('PTD Comp Finney'!D1619," ")
>
> 4 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=4, then I
> want to calculate *=IFERROR('PTD Comp Finney'!D1620," ")
>
> 5 * * * * * * =IFERROR('PTD Comp Finney'!D16," ")- If column 1=5, then I
> want to calculate *=IFERROR('PTD Comp Finney'!D1621," ")
>
> and so on...
>
> Any help would be most appreciated.
> --
> cheers,
> Heather


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to concatenate cells that meets a specific criteria in threecolumns ramana Microsoft Excel Worksheet Functions 6 17th Jul 2009 09:13 AM
Exporting from Access specific criteria to a specific Excel cell Teresa NS Microsoft Access External Data 1 2nd Dec 2008 12:24 AM
add cells on multiple worksheets using specific criteria edwgolz Microsoft Excel Worksheet Functions 2 18th Apr 2008 09:59 PM
Copying Cells from One Workbook to Another Based on Specific Criteria mdschuetz Microsoft Excel Worksheet Functions 0 22nd Oct 2007 03:49 PM
Count cells that meet a specific criteria Wellie Microsoft Excel Worksheet Functions 4 30th Mar 2004 07:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.