Excel - pivot table calculated field or item

Asked By craig
28-Jan-10 11:32 PM
Hi, my question is..I want to use an If formula based on the Grp colomn value
BU (see formula below), but it doesnt recognise the value as "BU", it just
returns the false value (value if false).

Pivot table rows are as follows
SO #	Grp	Cust 	Whse	SO
311450	BQ	BAKERS     S	10-Nov-Tue
312385	0	MODERN 	S	12-Nov-Thu
312403	BU	BUNNINGS 	S	12-Nov-Thu

I have inserted a calculated field with formula
=IF(Grp="BU",0,1)
The formula always returns 1
Thanks for your answer
Database
(1)
CraigAdd
(1)
CraigIf
(1)
Whse
(1)
Grp
(1)
Technology4u
(1)
BUNNINGS
(1)
Colomn
(1)
  Roger Govier replied to craig
29-Jan-10 05:08 AM
Hi Craig

Add an extra column to your source data headed Test with a formula like
=IF(B2="BU",0,1)
Then expand your source to include the new column.
Drag Test to the area where you want it on the PT - presumably the Data area
--
Regards
Roger Govier


__________ Information from ESET Smart Security, version of virus signature database 4817 (20100129) __________

The message was checked by ESET Smart Security.

http://www.eset.com
  craig replied to Roger Govier
31-Jan-10 04:50 PM
Hi Roger, Thanks but I didnt reallly want to have to modify my source data.
Is there a reason the pivot table formula wont recognise the text criteria?
Is this a limitation of pivot tables? The formula is simple enough, I cant
understand why it wont work.
  Roger Govier replied to craig
31-Jan-10 06:56 PM
Hi Craig

If you want to send me a sample of your raw data, then I will see if I can
come up with any other solution.
To mail direct
roger at technology4u dot co dot uk
Change the at and dots to make a valid email address.

--
Regards
Roger Govier


__________ Information from ESET Smart Security, version of virus signature database 4822 (20100131) __________

The message was checked by ESET Smart Security.

http://www.eset.com
  craig replied to Roger Govier
31-Jan-10 09:43 PM
Thanks Roger but I have used your suggestion (sort of) by using a different
field from my data for the if logic test criteria. In summary instead of
using a text field I am using a numeric value field which works fine. It
appears to me that formulas in pivot tables do not like text values as
criteria in the row fields.
Thanks for your help
Create New Account
help
excel (file di gestione) che si agganci = a a un altro file excel esterno (file database estratto dal gestionale) per = poter fare delle somme di valori di tot articoli e danne tutte dei valori anomali. Per riprova ho preso lo stesso file excel con un vecchio database che avevo = salvato e funziona senza problemi. Tramite Excel ho eseguito la funziona valuta formula voi una soluzione: questa = E8 la formula: = 3DSE(VAL.VUOTO(C75);" ";CERCA.VERT(TESTO(C75;"#");Database;CONFRONTA("Q#t = = E0 disponibile";Database!$1:$1;0);FALSO)) Lo scopo della formula = E8 leggere il codice di un articolo che legge da C = 75 in questo caso, e cercarlo sul file database (chiamato appunto Database) = tramite il cerca.vert e quindi mostrare il numero delle quantit = E0 disponi = bili CON IL VECCHIO DATABASE: La cella visualizza valore corretto di 9 eseguo il "valuta formula" esegue tutte le sue valuta e mi da com = e valore finale 9 ed = E8 corretto. CON IL NUOVO DATABASE: La cella visualizza sempre il valore corretto di 9 eseguo il "valuta formula" esegue tutte
microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5073 (20100429) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5073 (20100429) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5073 (20100429) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5073 (20100429) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5073 (20100429) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5073 (20100429) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5073 (20100429) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5074 (20100430) _ __ __ __ __ _ Il messaggio è stato controllato da ESET NOD32 Antivirus
e-mail: NNTP@microsoft.com. Excel - Italian Discussions Excel (1) Word (1) Perchè Come (1) Database (1) Aggiornamento (1) Community (1) Microsoft (1) Risponde (1) Esistono decine, se non centinaia, di rifilato ho previsto una firma che abbina a caso nomi e cognomi di un piccolo database. Tra i nome c'è Kerry, tra i cognomi c'è Herger. . . ma sarà un microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5104 (20100511) _ __ __ __ __ _ Il messaggio ? stato controllato da ESET NOD32 Antivirus. www microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5104 (20100511) _ __ __ __ __ _ Il messaggio ? stato controllato da ESET NOD32 Antivirus. www microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5105 (20100511) _ __ __ __ __ _ Il messaggio ? stato controllato da ESET NOD32 Antivirus. www microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5105 (20100511) _ __ __ __ __ _ Il messaggio ? stato controllato da ESET NOD32 Antivirus. www microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5111 (20100513) _ __ __ __ __ _ Il messaggio ? stato controllato da ESET NOD32 Antivirus. www microsoft.com / Forums / it-IT / officeexcelit / threads _ __ __ __ __ _ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5115 (20100514) _ __ __ __ __ _ Il messaggio ? stato controllato da ESET NOD32 Antivirus. www
parameters) except using the Query editor from the worksheet menues. Allows only reading of a database or excel file. 2) Record a macro while performing a query (use as a template entered using inputboxes, listboxes, or cells in the worksheet. Allows on reading or writing a database or excel file. 3) Use ADO method to connect to a database (or excel file) and read or write to the database using SQL. - - joel - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - joel's Profile: http: / / www.thecodecage.com / forumz / member.php?u = 229 _ Server;SERVER = usoldt-as-056;UID = dms_uk;;APP = Microsoft Office 2003;WSID = UKEDG-L41655;DATABASE = dms_reporting" _ , Destination: = Range("A5")) .CommandText = Array( _ , _ A_Customer_Month_End_View_UK.""Account Number"", A_Customer_Month_End_View_UK.""Customer Name string. The SELECT : Are the columns that get returned The From: The table in the database The Where: The filtering which returns theonly rows specified The Groupby : the Sort order of very vague. Sometimes it is better to use the ADO method to connect to a database where the error messages have more detail. I tired your code yesterday morning and got twice. This is becaue the macro created an Alias saying instead of using the the Database name (dms_reporting.dms_uk) then a period, and then the table name (A_Customer_Month_End_View_UK), the alias say
Get results from Access Database. Excel Hi All, I have Excel File & Access Database. Access Database Contains - Employee details like Employee ID, Address, Contact No., Process. Database has more 5000 records. In Excel I have 200 Employee ID - I need Contact No How can i get this results using ADO connection. Earlier we use to export access database to excel and then do VLookup to get the results. Now we are trying to 1) Sheets (1) Excel (1) ADODB (1) DB (1) Employee ID (1) Application (1) Access Database (1) Try this Lastrow = Sheets("Sheet1").Range("A1").End(xlDown).Row vecLookup = Application.Transpose(Sheets Sql & " WHERE EMP_ID IN (" & Join(vecLookup, ", ") & ")" HTH Bob Hi All, I have Excel File & Access Database. Access Database Contains - Employee details like Employee ID, Address, Contact No., Process. Database has more 5000 records