Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default SUMIFS using a text range

I am still new to Excel 2007. I want to start using SUMIFS for their
efficiencies over array formulas. They don’t seem to work the same. I
want to sort by Dep and Account and by month. The data comes in TEXT
format. I can’t get it to work without converting the TEXT to VALUES.
I bring in data and need to sort it like this.

Dep AccountII AccountII
SALARIES 110 60010 60999
SERVICES 110 65000 65999
MARKETING 110 70000 74999
TRAVEL 110 75000 79999
FACILITIES 110 80000 80109
OTHER 110 80110 81999
OTHER INCOME 110 82000 89999

SALARIES 120 60000 60999
SERVICES 120 65000 65999
MARKETING 120 70000 74999
TRAVEL 120 75000 79999
FACILITIES 120 80000 80109
OTHER 120 80110 81999
OTHER INCOME 120 82000 89999

This formulas works IF I convert the TEXT to VALUES. In 2003 I could
sort on the TEXT with an ARRAY formula. With 2007 this formula works
but only if I convert the TEXT to Values.

=SUMIFS(Amount,AccountII,"="&$R10,AccountII,"<="& $S10,Dep,$B10,Month,F
$2)

It does not work if I leave the search columns (Account) as TEXT.

Any solutions would be welcome and I thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default SUMIFS using a text range

The AccountII columns are actually the "R" & "S" in the formula. The
"AccountII" is the lookup range. Then there is also a Dep (Department)
lookup range and a Month range.

This allows me to sort expenses By Department, by month and in an
accounting range.

The Dep and Month are not a problem becasue the represent a fixed
value.

The problem comes because I am looking into a range of text vaues. In
other words I am looking for account values between 60000 to 60999 and
65000 to 65999, etc as TEXT. These and the lookup range is what I have
to convert to VALUES. Since they come out from the DB as text I'd
prefer to leave them as text and avoid having to convert them to
VALUES.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default SUMIFS using a text range

I have managed to get the attached workbook working with your text
data.

I have modified the first 3 columns, to all show Month1, with
differing formulae, to prove that all 3 results are the same.

Column G has your original formula, looking at extra columns where you
have converted Text to Numbers

Column H, calculates the result using Sumproduct formulae. I am not
suggesting using this as a solution, because Sumproduct is much slower
than Sumifs.

Column F uses my revised formula

=SUMIFS(Amount,Account,"--"&$C6-1,Account,"<=--"&$D6,Dep,$B6,Month,F
$2)



This is using all of the original Text data.

I have coerced the Text to Numeric, using the double unary minus --


Roger Govier was good enough to send me this solution offline. I had
never seen the unary function before. Many thanks Roger.

It works exactly as I needed it to work.

Siegfried
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
SUMIFS using a text rage Ziggy Excel Worksheet Functions 0 March 23rd 10 05:41 PM
SUMIFS using a text rage Ziggy Excel Worksheet Functions 0 March 23rd 10 05:41 PM
multiply criteria in a range using sumifs dloc Excel Worksheet Functions 1 February 5th 10 08:01 PM
Using SUMIFS with date range Catrina Excel Discussion (Misc queries) 4 January 27th 10 05:10 PM
Sumifs with error value in the sum range stylissimo Excel Discussion (Misc queries) 10 July 30th 08 05:55 PM


All times are GMT +1. The time now is 03:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"