Solved

Excel sum

Posted on 2013-10-24
14
320 Views
Last Modified: 2013-10-24
Hi

How do i make a sum in a spreadsheet where  sum is D17
where A2 to A16 contains tekst some with . as first letter.   <--(dot)
where b2 to B16 contains numbers

And i need to get all the numbers in sum EXCEPT the once from the A row starting with .  <--(dot)

RGS Danni
0
Comment
Question by:dannibach
  • 7
  • 4
  • 3
14 Comments
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39596712
Hi,

If I understand your requirement correctly, this formula should be placed in cell [D17]:

=SUMPRODUCT((LEFT(A2:A16,1)<>".")*(B2:B16))

BFN,

fp.
0
 

Author Comment

by:dannibach
ID: 39596742
Hey FP

thx for the fast reply... cant seem to get it to work

this is what i tryed my self.

=IF(LEFT(A2:A14;1)=".";0;1)*B2:B14

RGS Danni
0
 

Author Comment

by:dannibach
ID: 39596745
this works for 1 line only

=IF(LEFT(A8;1)=".";0;1)*B8
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:dannibach
ID: 39596830
Found somethink that works: here is the correct string i use:

=SUM(I11:I78977) - SUM.HVIS(G11:G78977;".*";I11:I78977)

but i need to also exclude all that begins with "test" aswell

/Danni
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39596831
=SUMPRODUCT((LEFT(A2:A16,1)<>".")*(B2:B16))
... cant seem to get it to work

What do you see that is unexpected, or incorrect?
0
 

Author Comment

by:dannibach
ID: 39596835
it just tells me that this is not a valid string

=SUM(I11:I78977) - SUM.IF(G11:G78977;".*";I11:I78977)
in english :)
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39596861
Why are you not using the formula I provided (based on your question text)?

=SUMPRODUCT((LEFT(A2:A16,1)<>".")*(B2:B16))
0
 

Author Comment

by:dannibach
ID: 39596874
Hi FP

i would like to use it. But i am testing my self aswell, so this is just what i found:
=SUM(I11:I78977) - SUM.if(G11:G78977;".*";I11:I78977)

i would like to use the the one you added, but as i wrote i cant seem to get it to work.
Excel tells me its  not working.

/danni
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 39596882
>but i need to also exclude all that begins with "test" aswell

Try using SUMIFS like this

=SUMIFS(I:I;G:G;"<>.*";G:G;"<>test*")

regards, barry
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39596910
Given the formulas you have posted where you are using ; as a separator you probably need this version to make fp's original formula work

=SUMPRODUCT((LEFT(A2:A16;1)<>".")*(B2:B16))

...although SUMIF is possibly simpler

=SUMIF(A2:A16;"<>.*";B2:B16)

regards, barry
0
 

Author Comment

by:dannibach
ID: 39597033
Hey Barry

That works great.  Can you tell me why this gives me to different results

=SUM(I11:I78977) - SUM.HVIS(F11:F78977;".*";I11:I78977) - SUM.HVIS(F11:F78977;".*";I11:I78977)


=SUM.HVISER(I11:I78977;F11:F78977;"<>.*";F11:F78977;"<>test*")

Cheers Danni
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 39597052
Your two SUMIF functions are both excluding ".", one of those should be test

=SUM(I11:I78977) - SUM.HVIS(F11:F78977;".*";I11:I78977) - SUM.HVIS(F11:F78977;"test*";I11:I78977)

regards, barry
0
 

Author Comment

by:dannibach
ID: 39597058
Arh god.... thanks champ

/Danni
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39597251
(Sigh)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
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.

773 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