Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Vlookup link to pivot - text/number question

Try selecting all the cells with numbers and then formatting them for text.

HTH,
Bernie
MS Excel MVP


"Owl" wrote in message
...
Hi Bernie

Im not experienced at all using macros - is there another way to fix this
problem?

"Bernie Deitrick" wrote:

Owl,

Select all the product code cells in your source data, and then run the macro below.

HTH,
Bernie
MS Excel MVP

Sub NumberToText()
Dim myCell As Range
Dim myCalc As Variant

With Application
.ScreenUpdating = False
myCalc = .Calculation
.Calculation = xlCalculationManual
.EnableEvents = False
End With

On Error Resume Next

For Each myCell In Selection.SpecialCells(xlCellTypeConstants, 1)
myCell.Value = "'" & myCell.Value
Next myCell

With Application
.ScreenUpdating = True
.Calculation = myCalc
.EnableEvents = True
End With
End Sub



"Owl" wrote in message
...
Hi,

Im linking my summary sheet to a pivot table using product codes. Because
the users have entered codes incorrectly, i keep getting n/a's where there is
obviously data in the pivot but isnt getting pulled through. This error
seems to disappear if i put an apostrophe at the start and if i retype the
whole code into the cell.

Is there a quick way of going through the errored ones and putting in the
apostrophe/retyping the code and ensuring this works?

Thanks!






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup Question..if text lookup_value do not match with table_arr ldiaz Excel Discussion (Misc queries) 11 June 30th 08 05:35 PM
TEXT on a Pivot table Question Phil Smith Excel Discussion (Misc queries) 1 November 1st 07 12:16 AM
Vlookup/Pivot table question MLK Excel Worksheet Functions 5 February 6th 07 04:10 PM
Pivot Table Question: Show percentages and standard number format TimT Excel Discussion (Misc queries) 0 October 26th 06 03:14 PM
Link Text to an Associated Number SBC16 Excel Worksheet Functions 1 March 2nd 05 10:26 PM


All times are GMT +1. The time now is 12:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"