+ Reply to Thread
Results 1 to 10 of 10

Update cell based on several IF criteria

  1. #1
    Forum Contributor
    Join Date
    08-15-2006
    Location
    USA
    MS-Off Ver
    Office 365, 64 bit
    Posts
    362

    Update cell based on several IF criteria

    I'm trying to automate a column for the users where a "Type" is updated based on the criterion below... This would really save them a lot of time as they deal with over 200 rows per file and they update the type per each manually - this is daily as its changes frequently... please refer to the attachment

    Criteria:
    IF columns E or F have a total greater than $0, enter MDE in the corresponding row in column D
    IF column D already has MDE in the cell because columns E or F calculated 1st to update it, and any column from G - N has a total less than or greater than $0, leave as MDE
    IF column D has no MDE because columns E or F equals to $0, than update as CR if row 4 has a CR number
    IF column D has no MDE because columns E or F equals to $0, than update as Other if row 4 has an Other
    If any of the columns have $0 and row 4 is empty (in this case J - N, do nothing


    Note: columns E or F need to be precede the calculation (be calculated 1st) for column D before the other 4...
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Update cell based on several IF criteria

    Could there be more then 1 column other ?

    Cheers
    Leo

  3. #3
    Forum Contributor
    Join Date
    08-15-2006
    Location
    USA
    MS-Off Ver
    Office 365, 64 bit
    Posts
    362

    Re: Update cell based on several IF criteria

    You know what, Yes... there's a possibility of another "Other"... good catch. The CRs will always remain unique...

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Update cell based on several IF criteria

    Dont have solution with formula then

    maybe with VBA, a button to update ?


    Kind regards
    Leo

  5. #5
    Forum Contributor
    Join Date
    08-15-2006
    Location
    USA
    MS-Off Ver
    Office 365, 64 bit
    Posts
    362

    Re: Update cell based on several IF criteria

    I can do some handy formula, so are you suggesting I post in the VBA forum to see if they have a way to do it or that you may have a VBA solution?

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Update cell based on several IF criteria

    Assuming you just want a formula for column D (paste in D5 and copy down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This finds the last non-zero number in the row and returns "MDE", "CR", or the corresponding row 4 text value ("Other" or "").

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Attached Files Attached Files
    Last edited by leelnich; 07-24-2017 at 04:45 PM.

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Update cell based on several IF criteria

    ...Or are you reading the amount and other info elsewhere and trying to get the correct column to update? If so, where is that info?

  8. #8
    Forum Contributor
    Join Date
    08-15-2006
    Location
    USA
    MS-Off Ver
    Office 365, 64 bit
    Posts
    362

    Re: Update cell based on several IF criteria

    The formula you provided is great; however, i failed to explain 2 items...

    1. Once the MDE is populated and than I enter a CR # on row 4, it does populate CR in column D and leaves the MDE as is
    2. However, once I add Other on row 4, it will override the already populated CR in column D
    3. I forgot that I have an additional column O... that is DDE... it will follow the same criteria where if already column D is already populated by MDE or CR or Other, only populate the rows that column D is empty with DDE...
    4. We follow this pattern: MDE, CR#s, Other and finally DDE
    5. At the end, all of the column D will be populated with MDE, CR, Other or MDE where there is a MOTS ID / Application Acr populate in columns B and C....

    Thanks so much for working on this...

  9. #9
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Update cell based on several IF criteria

    Try this (in D5 and down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee

  10. #10
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Update cell based on several IF criteria

    Solution with the update button

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

+ 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. Status update based on criteria
    By Sanjibghosh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-20-2017, 04:38 AM
  2. [SOLVED] userform update table based on 3 criteria
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-29-2016, 04:43 PM
  3. [SOLVED] Update Columns to Another Worksheet, then update another worksheet based on a set criteria
    By mnunnley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2016, 11:31 AM
  4. Replies: 5
    Last Post: 05-19-2015, 05:49 AM
  5. VBA to update a row based on a criteria.
    By thomasra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 02:10 PM
  6. Update Masterfile Based on Criteria
    By Sags in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2012, 10:22 AM
  7. Update unique data based on criteria
    By starpiter in forum Excel General
    Replies: 0
    Last Post: 10-23-2009, 12:33 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