Solved

SUMIFS number stored as text

Posted on 2014-11-20
6
993 Views
Last Modified: 2014-11-21
Hi,

please see attached worksheet.   I have SUMIFS formula in Column D and it does not work because Column B data are numbers stored as text.  I want help with formula to modify the formula, so that without converting the B column to number, my formula would work.
EE.xlsx
0
Comment
Question by:Flora
6 Comments
 
LVL 39

Expert Comment

by:als315
ID: 40456665
Ca you explain idea of second criteria of your formula?
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 250 total points
ID: 40456735
The following array formula works:

{=SUM(IF(($A$2:$A$19=A2)*(VALUE($B$2:$B$19)<=VALUE(B2)),$C$2:$C$19,0))}

Enter it WITHOUT the curly braces, and the use Ctrl+Shift+Enter instead of Enter to finish it.  Excel will then display the formula within braces to indicate that it is an array formula.
0
 
LVL 49

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 250 total points
ID: 40456741
Hi,

pls try ( as array formula Ctrl-Shift-Enter)

=SUMPRODUCT($C$2:$C$19,--($A$2:$A$19=A2),--(VALUE($B$2:$B$19)<=VALUE(B2)))

Regards
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Author Comment

by:Flora
ID: 40456913
Patrick and Rgonzo

you guys are heros in EE.  

your formulas are amazing. frankly, i am impressed.
0
 
LVL 5

Author Closing Comment

by:Flora
ID: 40456919
these answers are worth 50000.

saved me hours of manual work.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 40457838
Glad to help :)

Also happy to see Rgonzo1971's SUMPRODUCT approach.  I tried something similar but couldn't get it to work, and so resorted to the explicit array formula (SUMPRODUCT can be made to work, as Rgonzo1971 ably demonstrated, as an implicit array function).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now