+ Reply to Thread
Results 1 to 11 of 11

Divide by 2 if a certain word is not included

  1. #1
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    222

    Divide by 2 if a certain word is not included

    I'm working on a formula that needs to return a DIVIDED value in column G and H. if the words (AR) or (TR) are NOT in column C, and the whole amount of column D should show up in its corresponding column.

    My formula should read: DIVIDE COLUMN C3 BY 2 IF C3 DOES NOT INCLUDE (AR) or (TR), if not then enter the whole value from C3 into column G for AR and column H for TR. Please see attached.

    Thank you.
    CREDIT CARD BILLS.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Divide by 2 if a certain word is not included

    See my formula in cell I2
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  3. #3
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    222

    Re: Divide by 2 if a certain word is not included

    No that's not working.. The two PAYMENTS on row 3 and 4 are not supposed to be included in these columns. And rows 5 is only supposed to show in G and row 6 is supposed to show in H.. i removed the Divide by 2 column. Please see attached.CREDIT CARD BILLS.xlsx

  4. #4
    Forum Contributor
    Join Date
    01-29-2009
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    123

    Re: Divide by 2 if a certain word is not included

    Try this in G2 and H2 and then fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It's looking for "R)" instead of either "(AR)" or "(TR)" since both of them have "R)".

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Divide by 2 if a certain word is not included

    Maybe this will help you out:
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    222

    Re: Divide by 2 if a certain word is not included

    Since I removed the Divide by 2 column, the formula doesn't work. The transactions called PAYMENT - (AR) should be as they are now... in column E and the ones called PAYMENT - (TR) should be in column F. The problem is in the G and H columns.. Anything other than Payments = if they do not have an (AR) or a (TR) should be divided by 2. If they do have an (AR) or (TR) then they should go into G for (AR) and H for (TR). I highlighted in yellow how the amounts should be distributed. GAS is a transaction so if that has an (AR) the whole amount should go to column G, if it has a (TR), then it should into column H.

    Also, the info highlighted just needs to be blank if there is no info on that particular row.

    I attached the file again... Thank you all so much for your help.CREDIT CARD BILLS.xlsx

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Divide by 2 if a certain word is not included

    Forget this. Forgot one of the requirements.
    Last edited by newdoverman; 10-20-2014 at 02:43 PM.

  8. #8
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    222

    Re: Divide by 2 if a certain word is not included

    I'm sorry.. I don't see what I should try.. Is there supposed to be an attachment?

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Divide by 2 if a certain word is not included

    It took a while but I think that I finally got it.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    222

    Re: Divide by 2 if a certain word is not included

    WOWOWOW!!!! No wonder.. I would've never been able to figure that out. This formula is huge. Thank you so much.. You have no idea how much I appreciate this.

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Divide by 2 if a certain word is not included

    Thank you for the feedback.

    There might be a better way of doing this but my mind kept going around in circles....lots of static between the ears...LOL

+ 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. Macro to copy and paste from excel to word, video explanation included
    By Butcher1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2013, 01:53 AM
  2. Replies: 2
    Last Post: 03-22-2013, 07:42 AM
  3. VBA - Last Row Not Included-Working
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2011, 12:48 PM
  4. number not included in sum
    By evurr in forum Excel General
    Replies: 4
    Last Post: 02-29-2008, 11:32 AM
  5. [SOLVED] If I have Word 97 is Excel included with it?
    By Kelsey13 in forum Excel General
    Replies: 3
    Last Post: 01-28-2006, 09:55 AM

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