+ Reply to Thread
Results 1 to 2 of 2

Issue with formula in calculated field

  1. #1
    Registered User
    Join Date
    04-09-2010
    Location
    St. Paul, MN
    MS-Off Ver
    Excel 2007
    Posts
    1

    Issue with formula in calculated field

    I am trying to use an IF formula in a calculated field in a pivot table. I am using an outside data source and the field I want to use as the criteria in the IF formula is in text format. i.e.:
    =if(columnA=5000,true,false) the result of this is always false.

    Even if I change the formula to read:
    =if(columnA="5000",true,false) all results come back false.

    Any ideas on how I can get this to work with the text formated field?

    Thanks.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Issue with formula in calculated field

    Hello markmark3,

    welcome to the forum. Is it possible that the text field has trailing or leading spaces?

    Test your data and maybe change your formula to something like

    =if(TRIM(ColumnA)*1=5000,true,false)

    or

    =if(value(ColumnA)=5000,true,false)

    cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1