+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : entering IF arguments in another cell for reference

Hybrid View

  1. #1
    Registered User
    Join Date
    06-17-2012
    Location
    California
    MS-Off Ver
    2010
    Posts
    5

    entering IF arguments in another cell for reference

    Hello,

    This is my first time posting on this board, I wanted to see if anyone could clue me in on a way I can put an IF argument in a cell and then have another formula reference that cell to find out what the argument is.

    Essentially i want to create a search button or cell that will list items under or over a certain value but I want the user to be able to define weather it wants items '> x' or '< x'.

    So the ideal set up would be that the user plugs in > 300 (lets call this cell A2) and then a formula (in A3) goes as follows = IF(A1 A2, do something, do something else).

    Any help would be appreciated, i'm also open to other suggestions on how to do this. I recently got transferred to my current job and although I know excel, my previous job didn't require it so i'm kinds rusty with it.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: entering IF arguments in another cell for reference

    Hi and welcome to the forum.

    Something like this, maybe?

    =IF(A2>300,1,IF(A2>300,2,IF(A2=300,3)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,286

    Re: entering IF arguments in another cell for reference

    @Fotis: should one of those ">" be a "<"?


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: entering IF arguments in another cell for reference

    Off course my friend

    Thank you!

    =IF(A2>300,1,IF(A2<300,2,IF(A2=300,3)

+ 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