A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sumif



 
 
Thread Tools Display Modes
  #1  
Old March 14th, 2010, 11:01 PM posted to microsoft.public.excel.worksheet.functions
Robb27
external usenet poster
 
Posts: 14
Default sumif

I need to sum two cells together as long as either of the two cells have
numbers in them. If either of the two cells has "A" in it, then I need to
concantenate the two cells. Like this:
E is the column where the formula is. A and B are the columns where the
cells are to either add or concantenate.
A B C D E
2 8 10 (Cells are added 2 + 8)
A 8 A8 (Cells concantenated A8)

Is it IF A2=A THEN CONCANTENATE A2&B2, IF A2=2-10, THEN SUMIF?

Thanks,
Rob
  #2  
Old March 14th, 2010, 11:05 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default sumif

In E2:
=if(a2="A",a2&b2,a2+b2)
Copy down

Regards,
Fred

"Robb27" wrote in message
...
I need to sum two cells together as long as either of the two cells have
numbers in them. If either of the two cells has "A" in it, then I need to
concantenate the two cells. Like this:
E is the column where the formula is. A and B are the columns where the
cells are to either add or concantenate.
A B C D E
2 8 10 (Cells are added 2 + 8)
A 8 A8 (Cells concantenated A8)

Is it IF A2=A THEN CONCANTENATE A2&B2, IF A2=2-10, THEN SUMIF?

Thanks,
Rob


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:32 PM.


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