Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default If statement to go through every worksheet

OK I started a question earlier about this and I got it answered BUT now I
would like to modify it further.

Here it is:
=IF(C2=1,SUM(First:Last!A1),"")

What I need this function to do is for each worksheet check if cell C1 has 1
in it and if if does include it in the sum.

This function right now only checks C1 in the worksheet I have the function
in.

I need it to be something like this(I know this is wrong)

=IF((First:Last!C2=1),SUM(First:Last!A1),"")

Thank You

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default If statement to go through every worksheet

I started a question earlier about this and I got
it answered BUT now I would like to modify
it further.
I need it to be something like this(I know this is wrong)
=IF((First:Last!C2=1),SUM(First:Last!A1),"")


Basically, what you want is a SUMIF across sheets. I foind and read your
earlier post where you say you don't know how many sheets will be involved.
To use a SUMIF across sheets you'd *have* to know how many sheets need to be
included and what the sheet names are.

So, if I were you I'd use a formula on each of the sheets in the same cell
like this:

=(C2=1)*A1

Then, you can use another one of these formulas to get the grand total from
all the sheets:

=SUM(First:Last!X1)

Where X1 on each sheet holds the formula =(C2=1)*A1.

--
Biff
Microsoft Excel MVP


"Damian" wrote in message
...
OK I started a question earlier about this and I got it answered BUT now I
would like to modify it further.

Here it is:
=IF(C2=1,SUM(First:Last!A1),"")

What I need this function to do is for each worksheet check if cell C1 has
1
in it and if if does include it in the sum.

This function right now only checks C1 in the worksheet I have the
function
in.

I need it to be something like this(I know this is wrong)

=IF((First:Last!C2=1),SUM(First:Last!A1),"")

Thank You



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
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 10:07 PM
If statement to copy an entire row to other worksheet w/ in same b hshayh0rn Excel Worksheet Functions 7 May 1st 09 10:05 PM
Return Excel IF statement to a different worksheet? addme99 Excel Discussion (Misc queries) 1 December 15th 05 05:09 PM
If statement...copy values of cells on another worksheet. heater Excel Discussion (Misc queries) 2 September 1st 05 12:05 AM
if statement in worksheet CarolC Excel Worksheet Functions 5 June 1st 05 09:35 PM


All times are GMT +1. The time now is 04:42 AM.

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"