Excel If statements within Array formulas from Mr Excel


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

If statements within Array formulas
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

MTBer
Board Regular


Joined: 29 Apr 2004
Posts: 12

Flag: England

Status: Offline

 Reply with quote  

If statements within Array formulas

I'm putting together a crosstab report using an array formula, the formula is as follows

{=SUM(IF($A3&D$2&CC_Choice=HYP&date&CC,Amount))}

This basically produces a cost centre report for the Cost Centre Choice by account code by month.

I now wish to add an extra field of selection, by Business Unit, if a BU is selected a cost centre would not be selected so the CC-Choice field will be blank, and vice versa.

Is it possible to put an If statement into the above formula to determine if the report is by CC or BU.

My best attempt involves having a IF statement that checks if the field is populated and then runs the cc formula or bu formula,on the true false conditions.

thanks for your assistance.

Post Tue May 18, 2004 10:38 pm 
 View user's profile Send private message Send e-mail

PaddyD
MrExcel MVP


Joined: 02 May 2002
Posts: 6407


Status: Offline

 Reply with quote  

Re: If statements within Array formulas

"This basically produces a cost centre report for the Cost Centre Choice by account code by month"

wouldn't a pivot table be a more natural approach?

anyway, you need to describe you data set up in more detail - a worked example would help, as would a view of the data (you can post up a representative snapshot of your data with the html maker addin available by following the link below this post)

Post Tue May 18, 2004 10:45 pm 
 View user's profile Send private message

Aladin Akyurek
.


Joined: 15 Feb 2002
Posts: 15262
Location: The Hague
Flag: Blank

Status: Offline

 Reply with quote  

Re: If statements within Array formulas

Care to post the IF formula that you tried? Are HYP, date, and CC names that refer to particular ranges?

Post Tue May 18, 2004 10:51 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.