Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
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 4th, 2005, 03:47 AM
ct ct is offline
Authorized User
 
Join Date: Aug 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default creating formula for date

i have a problem to create a formula...for example in sheet 'A' in 'column A' I have list three different date..for example:

          A2: 1\1\2005 where B1: tshirt
          A3: 2\1\2005 where B2: jean
          A4: 3\1\2005 where B3: tshirt

then i want to capture the date in sheet 'B' in column A1..here i just want to capture output 'tshirt' only for certain date but in different sheet...how i want to create the formula..can u help me...



 
Old October 6th, 2005, 05:16 AM
Authorized User
 
Join Date: Feb 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Im not sure I understand this correctly but let me have a try.

In sheet "B", in cell A1 type:

=IF(Sheet1!B1="tshirt",Sheet1!A2,"")

What this formula does is that it checks cell B1 in Sheet1 on the word tshirt. If B1 = tshirt, then the cell where you type this formula in, gets the value of Sheet1!A2, thus the according date. Copy down this formula to the rest of the cells, and you are done

Hope I understood this correctly

Max






Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting and creating date and Time Audioicon ASP.NET 3.5 Basics 3 September 22nd, 2008 07:58 PM
help with date formula saf01 Crystal Reports 2 September 12th, 2005 07:07 AM
Creating a formula at run time janitha BOOK: Professional Crystal Reports for VS.NET 0 April 29th, 2005 05:45 AM
Formula to convert date format narooma.12 Crystal Reports 0 April 20th, 2005 04:54 PM
Record selectionf formula for date Bhavin Crystal Reports 0 December 9th, 2004 11:17 AM





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