Formula for Average of 2 numbers in 1 cell

sayayinx

New Member
Joined
Mar 29, 2011
Messages
4
I need the formula to find the average of two numbers in once cell separated by a hyphen. Here's an example:

$25,000 - $34,000

Thanks!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to the board.

Try:
Code:
=TEXT(AVERAGE(LEFT(A1,FIND(" -",A1)-1)+0,RIGHT(A1,LEN(A1)-FIND(" -",A1)-1)+0),"$#")
 
Upvote 0
How about?

=AVERAGE(SUBSTITUTE(LEFT(A1,FIND(" ",A1)-1),"$",""),MID(A1,FIND("-",A1)+3,255))

JackDanIce's formula returned #VALUE! for me, as did Biff's. If I the numbers are preceded by £ rather than $ they both work.
 
Last edited:
Upvote 0
Assuming the format stays similar, try

=AVERAGE(VALUE(MID(A1,2,FIND(" ",A1)-1)),VALUE(MID(A1,FIND(" $",A1)+2,LEN(A1)-FIND(" $",A1)-2)))
 
Upvote 0
Hi

Try:

=AVERAGE(VALUE(MID(A1,2,FIND(" -",A1)-2)),VALUE(RIGHT(A1,FIND("- $",A1)-3)))
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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