+ Reply to Thread
Results 1 to 4 of 4

IF Cell Value H2 is > 0, Change Cell Value I2 to 0

  1. #1
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    IF Cell Value H2 is > 0, Change Cell Value I2 to 0

    In boba7523.xslhttp://www.sendspace.com/file/xh6uwp"]boba7523.xsl"]boba7523.xsl, I have 2 columns for cost (Column H and Column I). Please ignore the rest of the columns such as Amazon fees and shipping fees.

    I already used VLOOKUP in my Item Cost column to gather product price based on product name (Column A).

    However, I'd like to ask Excel for an IF function that will do the following:

    After using VLOOKUP to find item cost, IF Drop Ship Cost (Column H) is greater than 0, I'd like Excel to change my Item Cost (Column I) to 0.

    The reason behind this is because there are 2 places I get my inventory from:

    1.) My warehouse. But if my warehouse runs out, I get it from
    2.) Another reseller who will drop-ship for me

    Therefore, I'd only be able to get my product from one place or the other, not both places.

    Cheers!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF Cell Value H2 is > 0, Change Cell Value I2 to 0

    Try

    =IF(H2>0,0,VLOOKUP(C2,'Item Cost'!$A$2:$B$116,2,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: IF Cell Value H2 is > 0, Change Cell Value I2 to 0

    Thanks for the help!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: IF Cell Value H2 is > 0, Change Cell Value I2 to 0

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 12-07-2013, 02:21 PM
  2. Replies: 1
    Last Post: 11-28-2013, 02:16 AM
  3. Replies: 2
    Last Post: 06-18-2013, 01:21 PM
  4. Replies: 5
    Last Post: 01-22-2013, 11:38 AM
  5. Change Cell Font Color if Cell Contains Formula Referencing Another Cell
    By wilcox.patrick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 10:24 PM

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