Formula to consolidate two different columns

gigglesxx

New Member
Joined
Feb 14, 2018
Messages
5
Hi,

I am trying to create a formula which looks at two different columns (1 and 2 in this example) and returns the value if there is one in either column 1 or column 2. And if both columns are empty, then leave the cell empty.

For example for the first row, the formula would return $205 and for the second row it would return $204. I am trying to consolidate the two columns into the one

Any help would be much appreciated!

[TABLE="width: 500"]
<tbody>[TR]
[TD]average weighted rate (all)[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]$205[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]$204[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]$216[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]$200[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]$220[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]$300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]$290[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]$290[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]$300[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 401"]
<colgroup><col><col><col></colgroup><tbody></tbody>[/TABLE]
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Re: Formula to consolidate two different columns. help!

Columns A,B,C
Excel 2016 (Windows) 32 bit

[TABLE="class: head"]
<tbody>[TR="bgcolor: #FFFFFF"]
[TD][/TD]
[TD][/TD]
[TD]
Result​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD][/TD]
[TD]
$205​
[/TD]
[TD]
$205​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
$204​
[/TD]
[TD][/TD]
[TD]
$204​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD][/TD]
[TD]
$216​
[/TD]
[TD]
$216​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
$200​
[/TD]
[TD][/TD]
[TD]
$200​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
$220​
[/TD]
[TD][/TD]
[TD]
$220​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
$300​
[/TD]
[TD][/TD]
[TD]
$300​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
$290​
[/TD]
[TD][/TD]
[TD]
$290​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
$290​
[/TD]
[TD][/TD]
[TD]
$290​
[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
$300​
[/TD]
[TD][/TD]
[TD]
$300​
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet2[/TD]
[/TR]
</tbody>[/TABLE]

Formula in C2 copied down
Excel 2016 (Windows) 32 bit
[TABLE="class: head"]
<tbody>[TR="bgcolor: #FFFFFF"]
[TD]
=IF(ISBLANK(A2),B2,A2)​
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet2[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top