ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to combine number data from one column into another column (https://www.excelbanter.com/excel-discussion-misc-queries/200955-how-combine-number-data-one-column-into-another-column.html)

newbie

how to combine number data from one column into another column
 
I have 2 columns with "1's" used to indicate a checkmark in that column. I
want to move the data from one column (eg column A) to another column (eg
column b) to consolidate the data into the one column (column b). This looks
like this:

A B into B
1 1
1 1
1 1
1 1
1 1

I would then be able to sum the numbers in column B to get a new total that
is the total of the old A and B. Thanks for your help.

Max

how to combine number data from one column into another column
 
As-is, if you just want the sum,
you could simply use in say C1: =SUM(A:B)

But if you want to merge cols A & B in col C:
a. If data in cols A & B contain only numbers
In C1: =IF(COUNT(A1:B1)=2,"",SUM(A1:B1))
Copy down to merge it in col C

b. If data in cols A & B contain text or mixed text/numbers
In C1: =IF(COUNTA(A1:B1)=2,"",IF(A1="",B1,A1))
Copy down to merge it in col C
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"newbie" wrote:
I have 2 columns with "1's" used to indicate a checkmark in that column. I
want to move the data from one column (eg column A) to another column (eg
column b) to consolidate the data into the one column (column b). This looks
like this:

A B into B
1 1
1 1
1 1
1 1
1 1

I would then be able to sum the numbers in column B to get a new total that
is the total of the old A and B. Thanks for your help.



All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com