Excel-Looking to combine numbers in one column with numbers in another column to form a BP.

WolverineNurse

New Member
Joined
Mar 2, 2021
Messages
6
Office Version
  1. 365
Platform
  1. MacOS
Hello-
I am looking to combine two columns of data...the first column has numbers in every row going down and the second column has cell rows with numbers and some rows are blank in the second column. I want to combine the numbers (systolic) in the first column with the numbers (diastolic) to form a BP....but not combine the numbers from the first column where there are numbers with the second column where /when there are not numbers...
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Maybe one of the options below (and yes I know a couple of the readings aren't possible)

Cell Formulas
RangeFormula
C2:C15C2=IF(B2<>"",CONCAT(A2," - ",B2),"")
D2:D15D2=IF(B2<>"",CONCAT(A2," - ",B2),A2)
E2:E15E2=IF(B2<>"", A2 & " - " &B2,"")
F2:F15F2=IF(B2<>"", A2 & " - " &B2,A2)
G2:G15G2=IF(B2<>"",TEXTJOIN(" - ",TRUE,A2,B2),A2)
H2:H15H2=IF(B2<>"",TEXTJOIN(" - ",FALSE,A2,B2),"")
I2:I15I2=TEXTJOIN(" - ",FALSE,A2,B2)
 
Last edited:
Upvote 0
Solution
You're welcome, just be aware that other than the formulas in columns E & F older versions of Excel won't run them. In this situation you can also use
Excel Formula:
=IF(B2<>"",CONCATENATE(A2," - ",B2),"")

...and welcome to the Forum.
 
Upvote 0

Forum statistics

Threads
1,216,583
Messages
6,131,557
Members
449,655
Latest member
Anil K Sonawane

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