Output Cell Value not Formula in VBA

yoan6

New Member
Joined
Jul 1, 2014
Messages
27
I have the code :
Code:
For Each cl1 In Table1
       
    cl1.FormulaArray = _
        "=MAX(IF(RC[-4]=(IF(VLOOKUP(RC[-1],Correspondance!R[" & i & "]C[-5]:R[" & j & "]C[-4],2,FALSE)=Log_WK!C[-3],Log_WK!C[-2],0)),Log_WK!C[-5],0))"
       
    If Not IsError(cl1) Then
        Result = cl1
    Else
        Result = ""
    End If
        
    Sheets("Date_Step").Cells(Date1_Row, Date1_Clm) = Result
    
    Date1_Row = Date1_Row + 1
    Step1_Row = Step1_Row + 1
    i = i - 1
    j = j - 1
       
Next cl1

As a result in my cell I have the formula not the value which must be like 01/10/2014 08:15:04

Could you tell me how I can get the value instead the formula?

Regards,
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,216,531
Messages
6,131,209
Members
449,636
Latest member
ajdebm

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