+ Reply to Thread
Results 1 to 6 of 6

Amend Formula To Check if Cell ‘A2’ Has Data Entered

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Amend Formula To Check if Cell ‘A2’ Has Data Entered

    Hi,

    I have the following formula in cell ‘V2’ in my template file i.e. =IF(D2="Hold Client","Hold",IF((K2-$V$1)<0,"Red","Green")) however, if there is no data entered in cells ‘A2’ to ‘U2’ cell ‘V2’ automatically returns ‘Red’ which is correct as it is following the formulas criteria.

    Can anyone please advise me how to amend the formula =IF(D2="Hold Client","Hold",IF((K2-$V$1)<0,"Red","Green")) to check in the first instance to see if there is data in cell ‘A2’ and if not display cell ‘V2’ as blank (empty) otherwise populate the cell as the formula criteria.

    N.B. in the attached file ‘Example.xlxs’ there is no data in rows 8 to 227, however, ‘Red’ is entered automatically as it matches the formula criteria and the formula needs to be amended to show a as blank (empty) cell

    Many thanks in advance for any assistance received

    Regards

    Rob
    Attached Files Attached Files
    Rob

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Amend Formula To Check if Cell ‘A2’ Has Data Entered

    One way

    =IF(A2="","",IF(D2="Hold Client","Hold",IF((K2-$V$1)<0,"Red","Green")))

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Amend Formula To Check if Cell ‘A2’ Has Data Entered

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Amend Formula To Check if Cell ‘A2’ Has Data Entered

    Another option:

    =IF(ISBLANK(A2),"",IF(D2="Hold Client","Hold",IF((K2-$V$1)<0,"Red","Green")))

  5. #5
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Amend Formula To Check if Cell ‘A2’ Has Data Entered

    Olly & PFDAVE,

    WOW !! Many thanks for your very prompt replies !! They both work as required.

    Thanks again

    Regards

    Rob

  6. #6
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Amend Formula To Check if Cell ‘A2’ Has Data Entered

    Glad we could help Robert and thanks for the rep

+ 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. [SOLVED] Stop Formula if Data is Entered into Cell
    By Topher53180 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2015, 06:15 PM
  2. Replies: 2
    Last Post: 05-13-2014, 01:18 PM
  3. [SOLVED] Formula Needed to copy data from a cell based on data entered into another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 03:16 AM
  4. Replies: 8
    Last Post: 01-23-2013, 03:36 AM
  5. Check all data entered in table before executing code
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2012, 12:30 PM
  6. User Form Data entry trying to check that Data is entered right
    By CityMPLSEmpolyee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2012, 01:23 PM
  7. how to check data has been entered before submitting
    By techmob in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 02-09-2010, 10:17 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