+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : IF Statement/VLOOKUP

  1. #1
    Registered User
    Join Date
    02-18-2010
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    2

    IF Statement/VLOOKUP

    I need some help. I am working on a worksheet titled "Budget Summary" and need a statement in cell C19 that says if cell B2 says February, April, June, August, October, or December, than it will give me the result on a worksheet titled "Depreciation", cell G5. If a different month/value is displayed in cell B2 than I need the cell (C19) to display a zero. I'm new at this and have fiddled around with IF and VLOOKUP and have had no luck. Please help!!!!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: IF Statement/VLOOKUP help

    If the value in C19 is text, use
    =IF(OR(B2={"February","April","June","August","October","December"}),Depreciation!G5,0)

    If the value in C19 is a date, use
    =IF(OR(MONTH(B2)={2,4,6,8,10,12}),Depreciation!G5,0)
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF Statement/VLOOKUP help

    Yet another alternative:

    =IF(MOD(MONTH(B2),2),0,Depreciation!G5)

    If B2 is Text then

    =IF(MOD(MONTH(1&B2),2),0,Depreciation!G5)

    Given use of XL2007 you could substitute MOD(...,2) for ISODD(...) if preferred (pre XL2007 this requires activation of Analysis ToolPak)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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