+ Reply to Thread
Results 1 to 4 of 4

Nested IF Function - The 'Condition' is based on two values within a Cell

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Nested IF Function - The 'Condition' is based on two values within a Cell

    Hi,

    Introduction:
    I am working on creating a simple Excel Database of an Engineering Tool Room Inventory for work. However I can not seem to get one particular 'NESTED IF Function' to do what I want it to do. (In advance warning, I may be going down the wrong route and might have used the wrong Formula in Excel but from my understanding the 'IF' function seemed the most plausible. However if anyone can recommend a better solution then that would be great - Thank you.)

    Issue:
    All I would like to do is for a NESTED IF Function to be able to say this:
    1. When a user inputs data into one column, for example 'Column A', with the following data: 4" Square
    2. Then the neighbouring column, for example 'Column B', would have a NESTED IF Function.
    3. Which would output a logical response, "A, B, C, D, E, F etc...", depending on what is written in Column A.
    If 'Column A' - 4" Square, Then 'Column B' - A
    If 'Column A' - 5" Square, Then 'Column B' - B
    & So on...
    But the NESTED IF Function should only put a logical response if there is certain values within the cell, for example:
    User types a value into 'Column A' which contain - 4 & S, Then 'Column B' - A
    User types a value into 'Column B' which contain - 5 & S, Then 'Column B' - B
    & So on...

    Current Solution:
    Currently to do the above function, I have utilised the following Excel NESTED IF Function:
    Please Login or Register  to view this content.
    & The following happens:
    1. User inputs data into 'Column A'
    2. The NESTED IF Function then provides an automatic response.
    3. However it relies on the data being inputted without the ' " (Quotation Symbol)'
    4. & With me defining the exact phrase that should be typed into the cell, for example, "4" Square"


    Other:
    I have attached an example worksheet of the NESTED IF Function in practice, with two tables. One showing what is happening with the code above and one table showing what I would like to happen but with no function.
    Example - IF Function.xlsx

    Thank you in advance.
    Sinalk

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Nested IF Function - The 'Condition' is based on two values within a Cell

    hello there,

    i don't know if this is what you would like, but this is how i have handled similar situations at my end.

    by the way, i found your post to be very clear and descriptive - kudos to you.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Nested IF Function - The 'Condition' is based on two values within a Cell

    sinalk, Good afternoon.

    Take a look at my example for you.
    10-03-2014_ExcelForum_Example - IF Function.xlsx

    Please, tell us if it worked for you.
    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  4. #4
    Registered User
    Join Date
    07-30-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Nested IF Function - The 'Condition' is based on two values within a Cell

    Hi!

    Apologies for the delayed response, was away for a couple of days.

    However thank you both for your responses. They both work.

    @icestationzbra:
    Your idea actually made it so I do not need to utilise the Column with A, B, C etc... Therefore removing the requirement of a Formula.
    (The Formula was part of a bigger document that had macros running in the background but they could not recognise the ' " ' symbol.

    @Mazzaropi:
    Your idea was good because it used a better formula than what I would have utilised!

    For other people who may read this post, I have a third option (which was provided by an individual at work) which is:
    Please Login or Register  to view this content.
    Thank you again all! Much appreciated for taking time out to help me!

+ 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. Nested If statements based on a true condition.
    By Jhail83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2013, 10:29 AM
  2. [SOLVED] Concatenate cell values based on condition
    By alexandruc in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-06-2012, 07:01 AM
  3. specific cell values based on a condition appearing in a combobox
    By darkhorse4321 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-21-2011, 06:40 AM
  4. Adding cell values in range based on condition
    By alexandruc in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 10-05-2009, 02:42 AM
  5. Average / SD values based on condition in adjacent cell
    By gypsyeyes in forum Excel General
    Replies: 3
    Last Post: 07-30-2009, 09:23 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