calebtemple
New Member
- Joined
- Jul 30, 2010
- Messages
- 2
Hi Guys,
I have a spreadsheet I want to use a SUMIF on, but column I want to sum is stored as text. I don't want to have to convert the column to text, I wanted to do it using a formula, but can't quite get the array formula right and hoping for some help
Sheet one is something like the following
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]200[/TD]
[/TR]
</tbody>[/TABLE]
NOTE: Column b are numbers stored as text
Now if Column B above was numbers, it's simple,
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col F Names[/TD]
[TD]Col G Totals[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]=sumif(A:A,F1,B:B)[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
But what do I do if those numbers in column B are formatted as text?
I have a spreadsheet I want to use a SUMIF on, but column I want to sum is stored as text. I don't want to have to convert the column to text, I wanted to do it using a formula, but can't quite get the array formula right and hoping for some help
Sheet one is something like the following
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]200[/TD]
[/TR]
</tbody>[/TABLE]
NOTE: Column b are numbers stored as text
Now if Column B above was numbers, it's simple,
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col F Names[/TD]
[TD]Col G Totals[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]=sumif(A:A,F1,B:B)[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
But what do I do if those numbers in column B are formatted as text?