formula based on another cell's formula

S

sphenisc

Hi, I'd like to extract info from another cell's formula
is this possible?

e.g.

a1: ='IT sheet'!A$3

b1: = mid(getformula(A1),4,2)

b1 would show 'IT'.

Is there something that would do the getformula bit.

cheers
 
P

papou

Hi
Function AfficheLaFormule(LaCel As Range)
If LaCel.HasFormula = False Then
AfficheLaFormule = False
Else: AfficheLaFormule = LaCel.Formula
End If
End Function

b1: = mid(AfficheLaFormule(A1),4,2)

HTH
Cordially
Pascal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top