Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B3D817CA3 for ; Thu, 6 Nov 2014 17:51:47 +0000 (UTC) Received: (qmail 9029 invoked by uid 500); 6 Nov 2014 17:51:47 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 9006 invoked by uid 500); 6 Nov 2014 17:51:47 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 8995 invoked by uid 99); 6 Nov 2014 17:51:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 17:51:46 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of blake.watson@pnmac.com designates 64.18.2.169 as permitted sender) Received: from [64.18.2.169] (HELO exprod7og108.obsmtp.com) (64.18.2.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 17:51:41 +0000 Received: from mx0a-00153b01.pphosted.com ([67.231.145.92]) (using TLSv1) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP ID DSNKVFu1F832F2wgaEfxArlELa4kpQB/LQNC@postini.com; Thu, 06 Nov 2014 09:51:21 PST Received: from pps.filterd (m0042905 [127.0.0.1]) by mx0a-00153b01.pphosted.com (8.14.5/8.14.5) with SMTP id sA6HjVTK017519 for ; Thu, 6 Nov 2014 09:51:19 -0800 Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx0a-00153b01.pphosted.com with ESMTP id 1qgd5s831q-1 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 06 Nov 2014 09:51:19 -0800 Received: by mail-wi0-f174.google.com with SMTP id d1so2265384wiv.7 for ; Thu, 06 Nov 2014 09:51:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=CC4o00riqbl8GFo29i0gmwFDX7MQEUu7RsuYDCDCjhI=; b=NvBica4aNrFlz77q0M9B4Mnv2R39Wb5cmR3ZikGjCgn2D89a2JFiowtdHXNEaFr63K 0pb2mufUses05TlAb4/ovi3+/+KPy50lmYuhwQyBd3a19ujfvsQeDRdhAqbumUZ6gv3v 0FtRk4GXoIBeR0fg70vna58aW8F8sdWLpyal9+zrZiV/RXgSjTUxa3U0CuWFfWSeZTTR +lamlTIu+rx/e4BIfuujrMMnVE5oouzE74ZHa0AJdvEdklRk8opeV9kQiOOz5NFESZ5J NjvaEKByPyjgipH5Xkp7Q9CS9rh/RlBkr/YWqNnljm6atFpbIYQI2yo20cgdqMUchyvw VUgA== X-Gm-Message-State: ALoCoQm0SYe3qHzW5Zvhbzsvs3dPizH3s/L3esmSKg8GFEPZDUKaLOch4SV0v0mtOObyz/kPh6ooVSseMUyUeSr0t1Tfvz5VTcDB3WOSkHFJjJG1xYOlLa8I47o/1zcIPzydxBxzlM/cxxOupna0jJAL0gFcR1L14w== X-Received: by 10.180.219.106 with SMTP id pn10mr16982892wic.63.1415296277069; Thu, 06 Nov 2014 09:51:17 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.180.219.106 with SMTP id pn10mr16982880wic.63.1415296276955; Thu, 06 Nov 2014 09:51:16 -0800 (PST) Received: by 10.194.51.33 with HTTP; Thu, 6 Nov 2014 09:51:16 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Nov 2014 09:51:16 -0800 Message-ID: Subject: Re: Cell type as returned by formula? From: Blake Watson To: POI Users List Content-Type: multipart/alternative; boundary=001a11346a70d717030507345749 X-Proofpoint-Spam-Reason: safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-11-06_07:2014-11-06,2014-11-06,1970-01-01 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org --001a11346a70d717030507345749 Content-Type: text/plain; charset=UTF-8 Thanks! On Wed, Nov 5, 2014 at 4:05 PM, Nick Burch wrote: > On Wed, 5 Nov 2014, Blake Watson wrote: > >> Is there a way to ascertain what data type a formula will return? If you >> invoke getCellType, you just get "formula". >> > > If you need to be certain, you'll need to evaluate it, and check the result > > If "what Excel last calculated this to be" is good enough, try > https://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/Cell.html# > getCachedFormulaResultType%28%29 > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org > For additional commands, e-mail: user-help@poi.apache.org > > -- *Blake Watson* *PNMAC* Application Development Manager 5898 Condor Drive Moorpark, CA 93021 (805) 330.4911 x7742 blake.watson@pnmac.com www.PennyMacUSA.com --001a11346a70d717030507345749--