+ Reply to Thread
Results 1 to 4 of 4

Insert a number into a function formula

  1. #1
    Registered User
    Join Date
    07-02-2007
    Posts
    8

    Insert a number into a function formula

    This is what I need to do:
    I'm using an "IF" function and I need to have the formula operate on a given row by changing one value in a different cell; for example.

    Formula =IF(IK7<1," ",B17)
    I would like to enter the number "7" in cell "A2" and have the formula read the "7" (in "K7") from cell "A2"

    So if I entered 10 in cell "A2" the formula would then read:
    =IF(k10<1," ",B17)

    Any ideas?

    --mark

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829
    Have a look at the INDIRECT function.

  3. #3
    Registered User
    Join Date
    07-02-2007
    Posts
    8
    I looked at that but can't seem to get it to work embedded in an IF statement. Maybe I have the syntax wrong.

    The formula is pointing to another sheet so it looks like this:
    =IF('Regonline 6-30'!$L149<1," ",K17)
    The value I would like to change by referencing another cell is "149"

    Thanks

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829
    If the number 7 is in A2, then the formula =indirect("'sheet(1)'!K"&a2) will return the value in sheet(1)->K7. That should nest just fine within an IF function =IF(indirect("'sheet(1)'!K"&A2)<1,value if true,value if false)

    Does that help?

+ 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