LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Complex sum function help - possible?

I am using Office 2003 on Windows XP.

I am familiar with the use of "SUMIF" and formula arrays like
"{=Sum(IF(...)}", etc. However, I cannot come up with a formula that will do
the following:

I have two sheets, call them Sheet1 and Sheet2.
Sheet1 contains all the data. Sheet2 contains the formulas.

So in Sheet2, I need a formula that might look like the following:

{=SUM(IF(Sheet1!A2:A500="FMPA", IF(SEARCH(Sheet1!G2:G500, "*SWAP*",
1),Sheet1!M2:M500)))}

Of course the above doesn't work because you cannot use "Search" in an array
formula (or can you?).

The problem is, I need a sum function based on column "A" and a Search type
function on column "G". I suppose I could break this out into multiple
columns, but this is for another user and I would like to accomplish this in
one neat function if possible.

Could someone please post an example function that would do it in ONE
function?

Thanks much in advance.

 
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
very complex IF function if not an alternative function of crossselection Daniel Miz Excel Worksheet Functions 0 March 25th 11 10:03 PM
Complex Function Jeff Excel Discussion (Misc queries) 1 May 22nd 08 10:25 PM
complex function----Help! narp[_2_] Excel Worksheet Functions 5 May 21st 08 09:30 PM
complex function LostSam Excel Worksheet Functions 2 May 3rd 06 01:57 AM
Complex if and mid function. brookdale Excel Worksheet Functions 5 June 28th 05 07:52 PM


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