two formula questions

  • Thread starter Thread starter Legacy 177405
  • Start date Start date
L

Legacy 177405

Guest
i need a formula that will pull a number from sheet one in a workbook and display it in sheet two. the specific application is for account numbers however in sheet two i only want the result of the formula to return the last four digits of the account or xxx1234. to be clear the value would be displayed in sheet one as a full 7 digit # then sheet two would have a formula linking to sheet one... i want the the formula to return only the last four digits of the number string in sheet one.

secondly, i would like to link a value in sheet two to a value in sheet one, however if the primary cell is blank i would like the formula to pull from a second cell. is this possible. hopefully i have been clear enough... let me know if i can provide any more detail. thanks in advance for the help
richard keyser
 
Three choices

=RIGHT(Sheet1!A1,4)
will give 4567 but as a text value not a number

="xxx"&RIGHT(Sheet1!A1,4)
will give xxx4567 which is obviously a text value

=RIGHT(Sheet1!A1,4)+0
will 4567 as a number, not text.
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,225,149
Messages
6,183,188
Members
453,151
Latest member
Lizamaison

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