+ Reply to Thread
Results 1 to 6 of 6

Data Validation Formulas

  1. #1
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Data Validation Formulas

    Hi,

    I am pasting two balance sheets into 1 excel sheet and would like help with:

    - Setting a formula that checks two cells containing text within a row and returns the word 'Matched'. Plan is to drag down the formula to see which descriptions do link and do not link i.e. Taxes and Taxes = 'Matched', Taxes and Dividends = 'Check Description'

    - The other is to check the dollar balance (or not) between two cells within a row. For example $100 and $100 = 'Balanced' and $100 and $80 = '($20) Difference' (aiming to have it return a positive or negative number).

    Any help would be greatly apprecaited!

    PERE

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Data Validation Formulas

    hi there again, PERE. assuming 1st problem in A1 & B1, try:
    =IF(A1=B1,"Matched","Check Description")
    if you are particular about upper & lower cases, maybe:
    =IF(EXACT(A1,B1),"Matched","Check Description")

    2nd problem assuming in E1 & F1, then:
    =IF(F1-E1,F1-E1,"Balanced")
    Format cells to show brackets when negative

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Data Validation Formulas

    Thanks Benishiryo, they both worked.
    In relation to the first formula, how do I add in "No Ref" to basically state that one or both of the cells (A1 and B1 in your example) the formula is referencing has no text in it so it thus returns "No Ref" ??

  4. #4
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Data Validation Formulas

    Also do you know how to make the text or cell red if "Check Description" or "No Ref" is returned??

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Data Validation Formulas

    you're welcome. maybe:
    =IF(OR(A1="",B1=""),"No Ref",IF(A1=B1,"Matched","Check Description"))

    to do conditional formatting, select the range you want to apply to (i.e. A1:B10 or if you highlighting the results say in column C, then C1:C10)
    go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =OR($C1="Check Description",$C1="No Ref")
    or maybe just this:
    =$C1<>"Matched"

    format to fill or change font colour.

  6. #6
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Data Validation Formulas

    yes that worked well, thankyou.

    Sorry, another question. What about this scenario in a new cell.

    Y4 contains a current value
    AB4 contains a proposed value
    Z4 contains the difference between AB4 - Y4.
    In AF4 I would like the formula to run this calculation then return "Balanced" if the difference is exactly that in Z4 or the +ve or -ve difference.

+ 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