Concatenate fails when cell reference is changed

DaveRook

New Member
Joined
Jul 18, 2011
Messages
2
Hi
My excel sheet has a table and underneath, I concatenate a 'string' to summary the table. When I replace the value of a cell by dragging in a new cell, it errors.

EG, cell A1 has the value of 5 and B1 has the value of 10.

cell A3 has the string:
=CONCATENATE("Total is ", IF($A$1 + $B$1 > 10, "higher", "lower"), " than 11")

This works as it should do. Brilliant.

In cell C1, I have the value 4. If I drag C1 into (and replace) the contents of B1, my string errors:
=CONCATENATE("Total is ", IF($A$1 +#REF! > 10, "higher", "lower"), " than 11")

I have changed this to use absolute cells ($) and not, and even from different worksheets. I'm not sure why the cell reference has to change in the string.

Any ideas?

Dave
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Incidentally, you could also use the OFFSET function to do this job.

="Total is "&IF(A1+OFFSET(A1,0,1)>10, "higher", "lower")&" than 11"
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,553
Members
452,928
Latest member
101blockchains

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