Incorporating round function into formula

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
When incorpating the round function into my formula, it returns #value !. Without the round formula, I get no error


Code:
=ROUND(IF((C2-B2)-1>0,TEXT((C2-B2)-1,"#,#0")&UNICHAR(9650),TEXT((C2-B2)-1,"#,#0")&UNICHAR(9660)),0)&""



It would be appreciated if someone could amend my Code
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try

=IF((C2-B2)-1>0,CONCATENATE(ROUND(VALUE(TEXT((C2-B2)-1,"#,#0")),1)&UNICHAR(9650)),CONCATENATE(ROUND(VALUE(TEXT((C2-B2)-1,"#,#0")),1)&UNICHAR(9660)))

or

=IF((C2-B2)-1>0,CONCATENATE(ROUND(VALUE(TEXT((C2-B2)-1,"#,#0")),1)&UNICHAR(9650)),CONCATENATE(ABS(ROUND(VALUE(TEXT((C2-B2)-1,"#,#0")),1))&UNICHAR(9660)))

If you don't want a negative number before your arrow.
 
Last edited:
Upvote 0
Thanks for the help. The formula now returns a circular reference


See sample data




Book1
ABC
230250
31080
438470
549440
68120
743490
8
Sheet1
Cell Formulas
RangeFormula
C2=IF((C2-B2)-1>0,CONCATENATE(ROUND(VALUE(TEXT((C2-B2)-1,"#,#0")),1)&UNICHAR(9650)),CONCATENATE(ABS(ROUND(VALUE(TEXT((C2-B2)-1,"#,#0")),1))&UNICHAR(9660)))
 
Upvote 0
It will result in circular reference if your formula is in the C column as the formula compares C & B.

If your comparing A & B columns;

Code:
[COLOR=#333333]=IF([/COLOR][COLOR=Blue](A[COLOR=Red]2-B2[/COLOR])-1>0,CONCATENATE([COLOR=Red]ROUND([COLOR=Green]VALUE([COLOR=Purple]TEXT([COLOR=Teal](A[COLOR=#FF00FF]2-B2[/COLOR])-1,"#,#0"[/COLOR])[/COLOR]),1[/COLOR])&UNICHAR([COLOR=Green]9650[/COLOR])[/COLOR]),CONCATENATE([COLOR=Red]ABS([COLOR=Green]ROUND([COLOR=Purple]VALUE([COLOR=Teal]TEXT([COLOR=#FF00FF](A[COLOR=Navy]2-B2[/COLOR])-1,"#,#0"[/COLOR])[/COLOR]),1[/COLOR])[/COLOR])&UNICHAR([COLOR=Green]9660[/COLOR])[/COLOR])[/COLOR][COLOR=#333333])[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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