concatenate? For Formula

John Caines

Well-known Member
Joined
Aug 28, 2006
Messages
1,155
Office Version
  1. 2019
Platform
  1. Windows
Hello All.
I have a formula that is working that is the following;
Code:
=IF(LEN($O$24)=0,"",(AVERAGE($O$24:$O$274)))

this just gives me the average £ amount for any cells entered in that range,,, great.
What I'm trying to do is create a formula that rather than just show a resulting amount;
(For Example),,,£124.50,,,, it will show,,,

"Daily Avg. £124.50" (Without Brackets/parentheses)

I'm trying formulas like;
Code:
=IF(LEN($O$24)=0,"","Daily Avg",(AVERAGE($O$24:$O$274)))
It doesn't work,,, not sure how to do it,,,
could someone please show me the error of my ways,,, I can't be too far off,,,:-)

I hope someone can help me.

Many Thanks
johnCaines
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi John. Try

=IF(LEN($O$24)=0,"","Daily Avg "&DOLLAR(AVERAGE($O$24:$O$274),2))
 
Upvote 0
Could you maybe also just use a custom format?

Ctrl + 1
Number Tab
Category: Custom
Type: "Daily Avg." [$£-809]#,##0.00
 
Upvote 0
Maybe

=IF(N($O$24:$O$274),"Daily average "&AVERAGE($O$24:$O$274),"")
 
Upvote 0
Many thanks for both your replies! :-)

I did try another that was almost,,,
Code:
=IF(LEN($O$24)=0,"","Daily Avg",&(AVERAGE($O$24:$O$274)))

Kind of worked but the amount returned was like £124.5012,,,,not what I wanted,, and I looked at formatting the cell to currency,,, to just 2 decimal places,, but it wouldn't :-(

Many thanks Aladin Akyurek,,, for your formula,,, but this also has the same problem with the 4 digits,,,,

VOG,, your formula,,, working perfectly!
The & DOLLAR bit,,,, this seems to get over my problem.... Excellent..

Many thanks to you both

A very grateful
John Caines
 
Upvote 0
Many thanks for both your replies! :-)

I did try another that was almost,,,
Code:
=IF(LEN($O$24)=0,"","Daily Avg",&(AVERAGE($O$24:$O$274)))

Kind of worked but the amount returned was like £124.5012,,,,not what I wanted,, and I looked at formatting the cell to currency,,, to just 2 decimal places,, but it wouldn't :-(

Many thanks Aladin Akyurek,,, for your formula,,, but this also has the same problem with the 4 digits,,,,

VOG,, your formula,,, working perfectly!
The & DOLLAR bit,,,, this seems to get over my problem.... Excellent..

Many thanks to you both

A very grateful
John Caines

You should replace the LEN bit with the COUNT bit though...
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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