+ Reply to Thread
Results 1 to 3 of 3

If cell X has any value then enter value from cell Y but not if cell X is a negative value

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Question If cell X has any value then enter value from cell Y but not if cell X is a negative value

    Hi there!

    I've run into a road block in my excel spreadsheet.

    The end game is to roughly calculate postage costs for 2,500 orders.

    But to get there I need to assign postage costs to a column but only if the transaction required postage.

    Some of these transactions are refunds or the payment wasn't approved so then postage wouldn't apply.

    I think I've almost figured it out except my formula assigns postage costs to refunds too. Refunds can be seen as negative values in the "Amount $" column.

    My excel spreadsheet already has these formulas:

    D2
    =IF(ISNUMBER(SEARCH("Transaction Approved",C2)),B2,"")
    D3
    =IF(ISNUMBER(SEARCH("Transaction Approved",C3)),B3,"")
    ETC.

    E2
    =IF(D2="",,$G$2)
    E3
    =IF(D3="",,$G$2)
    ETC.

    I have also attached the excel file.

    Postage for orders.xlsx
    Last edited by rkobeyer; 04-16-2013 at 09:27 PM. Reason: I screwed up the HTML table

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: If cell X has any value then enter value from cell Y but not if cell X is a negative v

    Possibly,
    =IF(D2="","",IF(D2<0,"",$G$2))

  3. #3
    Registered User
    Join Date
    06-20-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: If cell X has any value then enter value from cell Y but not if cell X is a negative v

    Quote Originally Posted by davesexcel View Post
    Possibly,
    =IF(D2="","",IF(D2<0,"",$G$2))
    OMG! it works!

    Thank you so much!

    I really appreciate your help and I am blown away with the speed of your response.

    Cheers

    Russell

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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