average blood pressure readings

bhmcpfs

Board Regular
Joined
Apr 1, 2002
Messages
106
Looking for a formula to average rows of blood pressure readings. Column H contains readings as general format, e.g. 120/80 Have tried numerous formulas using LEFT and RIGHT to isolate #'s to sum/average with no luck at all. Compounding factor is that both #'s can be either 2 or 3 digits. Any guidance would be greatly appreciated.
 

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).
You need to use left or right with find.

If 120/80 is in A1 use these two formulas;

Code:
=VALUE(LEFT(A1,FIND("/",A1,1)-1))
=VALUE(RIGHT(A1,LEN(A1)-FIND("/",A1,1)))

Value changes it from text to numeric.
 
Upvote 0
If the data is in C2, use:

=LEFT(C2,FIND("/",C2)-1) to get the first one and

=RIGHT(C2,LEN(C2)-FIND("/",C2)) to get the second.

K
 
Upvote 0
Try something like this:

=AVERAGE(VALUE(LEFT(A1:A5,FIND("/",A1:A5)-1)))&"/"&AVERAGE(VALUE(RIGHT(A1:A5,LEN(A1:A5)-FIND("/",A1:A5))))

which is an array formula which must be confirmed with Ctrl+Shift+Enter not just Enter.
 
Upvote 0
I can isolate the #'s in other columns, and then average them and put them back together, and hide my data columns, but I'd prefer to do the average in one formula at the end of the reports (lots of rows of data ~ 20,000 in each report). I think you guys are on the right track though.
 
Upvote 0
Very impressive Andrew! Except for rounding the first # (which I should be able to handle), it looks absolutely beautiful. I tried a whole lot of CSE's (arrays), but didn't get nearly far enough into it. Many many thanks.
 
Upvote 0
The finishing touches to Andrews fine formula:

=INT(AVERAGE(VALUE(LEFT(H27:H40,FIND("/",H27:H40)-1)))+0.5)&"/"&INT(AVERAGE(VALUE(RIGHT(H27:H40,LEN(H27:H40)-FIND("/",H27:H40))))+0.5)

Needless to say substitute your range where my H27:H40 is - I just pasted directly from my spreadsheet. There can't be any blank values in the range or you will get an error!
 
Upvote 0
Great formulas! What would be the approach if the spreadsheet does contain blank values (and assuming I can't do anything about them). Can the formula be extended to ignore blank cells?
 
Upvote 0

Forum statistics

Threads
1,215,693
Messages
6,126,246
Members
449,304
Latest member
hagia_sofia

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