forumla showing entered cell value instead of formatted cell value

  • Thread starter Thread starter Legacy 93538
  • Start date Start date
L

Legacy 93538

Guest
Hi

I have an excel worksheet which i am using to do a forumla in another cell.

However the cell i am getting data from has been formatted so the value in the cell appears as "Jan" but the forumla uses the entered value of "01/01/2011" but I need to to bring back the formatted value.

Does anyone know how to do this? :confused:

Thank you

Jessicaseymour

p.s. hope that makes sense:)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Use the TEXT function:
=TEXT(A1,"mmm")
for example.
 
Upvote 0
You should copy formatting. In Excel 2007/2010 right-click source cell and press "Formar Painter". Then click target cell. It will get the same formatting as source cell.
 
Upvote 0
Hi

Thanks for replying!

I should have given more detail. The formula is being placed in the cell by a macro which loops though a cell range and for each cell in the range it puts a forumla in a column which is "the value of the corresponding cell in column E & - & the cell vallue in row 1 of the corresponding column"

Its the value in the row 1 cell which is formatted so it shows as "Jan" but the forumla uses the entered value.

the code is:
Code:
For Each cell In PPWBForm.Range("F4:U644")
    If cell.Value <> "" Then
      PPNewIR.cells(Nrow, 9).Value = PPWBForm.Range("E" & cell.Row).Value & " - " & PPWBForm.Range(Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ", cell.column, 1) & "1").Value
        Nrow = Nrow + 1
        Application.StatusBar = cell.Address
    End If
    
Next cell
 
Upvote 0
Try:
Code:
For Each cell In PPWBForm.Range("F4:U644")
    If cell.Value <> "" Then
      PPNewIR.cells(Nrow, 9).Value = PPWBForm.Range("E" & cell.Row).Value & " - " & PPWBForm.Cells(1, cell.column).Text
        Nrow = Nrow + 1
        Application.StatusBar = cell.Address
    End If
    
Next cell
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,713
Members
452,939
Latest member
WCrawford

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