+ Reply to Thread
Results 1 to 6 of 6

"IF" Function

  1. #1
    Registered User
    Join Date
    08-01-2007
    Posts
    13

    "IF" Function

    Hey guys,

    I'm trying to create a spreadsheet which consolidates a lot of other data, reducing duplicate inputs.

    basically the situation is this:
    If a cell B1 has a value (>1), cell C1 has a name, the same name as A1. I'm using this formula:
    =IF(B1>=1,"Apple","")
    The trouble is I need the word "Apple" to change when the input in A1 changes. So I need a formula similar to
    =IF(B1>=1,"A1","")
    But obviously the above doesn't work!

    Any help would be much appreciated, I've spent at lot of time playing around with this but to no avail!
    Attached Files Attached Files

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi not entirely clear what you want but if it is that

    If B1 is greater than or equal to 1 and C1 = A1, your_result, else leave blank

    This will do

    =IF(and(B1>=1,C1=A1),your_result,"")

    Ed

  3. #3
    Registered User
    Join Date
    08-01-2007
    Posts
    13
    Hey EdMac, thaknks for the reply.

    What I'm trying to achieve is:

    If B1 is greater than or equal to 1, C1 = A1, Otherwise leave blank.

    Its a similar sentance to yours but slightly different, any ideas?

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Beale

    In C1

    If(B1>=1,A1,"")

    Logic: If B1>=1, use value in A1, else leave blank

    You were nearly there - cell references never have "" marks around them

    Ed

  5. #5
    Registered User
    Join Date
    08-01-2007
    Posts
    13
    Ah! Works great, thanks for your help on this!

  6. #6
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    No problem.

    Thanks for the feedback

    Ed

+ 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