Extraction result of formula only from a cell

pvr928

Well-known Member
Joined
Oct 21, 2002
Messages
790
Is there any way to extract the result of a formula from a cell to which formatting has been applied.

Ie the cell (A2) from which I want to extract the result of a formula is:

=TEXT(date(year(A1),month(A1)+1,0),"dd-mmm-yy")

And I want to extract the result of the formula (eg 31-May-04).

Is there any way to achieve this?

Cheers

pvr928
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

RichardS

Well-known Member
Joined
Feb 16, 2002
Messages
761
How do you mean extract the result. In your example, if you put 31/5/04 in A1, the formula in A2 will give the result you have sited. What are you actually looking for? The serial number? Try --(A2) if you want to convert it into a number Excel recognises.

Richard
 

pvr928

Well-known Member
Joined
Oct 21, 2002
Messages
790
I want to be able to use the result of the formula in A2 in another cell, ie in cell A3 I want to manipulate the result of the formula in cell A2.

The full formula in cell A2 is ="As at "&TEXT(date(year(A1),month(A1)+1,0),"dd-mmm-yy")

If you attempt to manipulate the result of such a formula, you get an error as it has text in it ("As at ").

How do I extract just the result of the operation of the formula (31-May-04)?

Cheers

pvr928
 

tactps

Well-known Member
Joined
Jan 20, 2004
Messages
3,460
Why not change the formula to show the date and format as follows:

=date(year(A1),month(A1)+1,0)

Format as "At at" dd-mmmm-yy (type quotes in)
 

RichardS

Well-known Member
Joined
Feb 16, 2002
Messages
761
Or, presuming A1 has the date in it, just change the custom format of A1, without using A2 as an intermediary.

Richard
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,025
Messages
5,856,892
Members
431,837
Latest member
megantang

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
Top