Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2005, 01:00 AM
ct ct is offline
Authorized User
 
Join Date: Aug 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default copy value in char

=IF(D4=" "," ",SUMIF(Sheet2!C4:C7,D4,Sheet2!D4:D7))...

'SUMIF' is used to copy the value if the value in sheet2 is a number...but if the value in sheet2 is a character...what is the command that i need to used? because if i still used 'SUMIF' it will return #value...can u help me? thank u..


 
Old October 27th, 2005, 08:30 AM
Authorized User
 
Join Date: Jun 2003
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you've got several functions to help you. Check the help on how to use ISTEXT, ISNONTEXT, ISNUMBER. There's also a useful TYPE function which tells you what kind of content exists in the cell

you probably will want to use this with one or more IF functions, and probably in conjunction with the logical functions AND, OR, NOT





Similar Threads
Thread Thread Starter Forum Replies Last Post
Big challenge here! How to convert char* to char^? samiswt Visual C++ 2005 1 November 30th, 2007 09:09 PM
Please help with passing (char * name[]) pdang265 C++ Programming 1 September 26th, 2007 05:59 AM
Invalid conversion from 'char*' to 'char' deuxmio C++ Programming 3 December 8th, 2006 07:56 AM
Escape char for '-' mattastic Access 1 October 6th, 2005 03:27 PM
char problem roelbagao Java Databases 1 July 19th, 2003 12:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.