If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Averaging compound numbers
Is there a formula for obtaining an average of a series of compound numbers,
such as blood pressure readinags, e.g. 140/80? |
#2
|
|||
|
|||
Averaging compound numbers
What form do you want the results in?
If XXX/YYY then one way is to array enter (CTRL-SHIFT-ENTER or CMD-RETURN): =TEXT(AVERAGE(--LEFT(A1:A20,3)),"0") & "/" & TEXT(AVERAGE(--MID(A1:A20,5,3)),"0") In article , "Old Red One" wrote: Is there a formula for obtaining an average of a series of compound numbers, such as blood pressure readinags, e.g. 140/80? |
#3
|
|||
|
|||
Averaging compound numbers
Hey John,
Slight revision to your formula to include a neighbor of mine, who has low blood pressure, where his systolic number is below 90. =TEXT(AVERAGE(--LEFT(A1:A5,FIND("/",A1:A5)-1)),"0")&"/"&TEXT(AVERAGE(--RIGHT (A1:A5,LEN(A1:A5)-FIND("/",A1:A5))),"0") -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "JE McGimpsey" wrote in message ... What form do you want the results in? If XXX/YYY then one way is to array enter (CTRL-SHIFT-ENTER or CMD-RETURN): =TEXT(AVERAGE(--LEFT(A1:A20,3)),"0") & "/" & TEXT(AVERAGE(--MID(A1:A20,5,3)),"0") In article , "Old Red One" wrote: Is there a formula for obtaining an average of a series of compound numbers, such as blood pressure readinags, e.g. 140/80? |
#4
|
|||
|
|||
Averaging compound numbers
"Ragdyer" wrote...
.... =TEXT(AVERAGE(--LEFT(A1:A5,FIND("/",A1:A5)-1)),"0")&"/" &TEXT(AVERAGE(--RIGHT(A1:A5,LEN(A1:A5)-FIND("/",A1:A5))),"0") .... OK, but this could be shortened to =ROUND(AVERAGE(--SUBSTITUTE(A1:A5,"/",".000000")),0)&"/" &ROUND(AVERAGE(--MID(A1:A5,FIND("/",A1:A5)+1,1024)),0) |
#5
|
|||
|
|||
Averaging compound numbers
You may also want to consider splitting the data into individual
components and operating on them. Suppose your BP readings are in col. A starting with A2. Then, in B2, enter =LEFT(A2,FIND("/",A2)-1) to get the systolic reading. In C2, enter =MID(A2,LEN(B2)+2,LEN(A2)) to get the diastolic reading. Now, you can do whatever you want with the components. -- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... Is there a formula for obtaining an average of a series of compound numbers, such as blood pressure readinags, e.g. 140/80? |
Thread Tools | |
Display Modes | |
|
|