+ Reply to Thread
Results 1 to 4 of 4

Perform IF function for a range of input cells, then use corersponding cells if correct.

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Perform IF function for a range of input cells, then use corersponding cells if correct.

    Hi there,


    I want to perform the simple calculation below but with a few customisations... I hope someone can help

    If( A1=X'x' , (B1-Y'x'), "" )

    1) I wish to perform the calculation for a range of cells (X)
    2) when the X'x' value that matches A1 is found, I want to use other cells in the corresponding 'x' row for another part of the calculation.


    Thakns in advance for any help.

    Cheers.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,740

    Re: Perform IF function for a range of input cells, then use corersponding cells if correc

    You can probably do it using an INDEX and MATCH combination, but I don't understand your nomenclature so you'll have to explain things in a bit more detail.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Perform IF function for a range of input cells, then use corersponding cells if correc

    Hi r2fro,

    I think you can use the VLOOKUP formula.

    If your X's and Y's are in the range $X$1:$Y$50, then use this formula in C1

    =IF(ISNA(VLOOKUP(A1,$X$1:$Y$50,2,0)),"",B1-VLOOKUP(A1,$X$1:$Y$50,2,0))

    Let me know if this doesn't work...

    Later,
    Dennis

    re-post: Sorry Pete, I seem to be always posting slower than you...

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,740

    Re: Perform IF function for a range of input cells, then use corersponding cells if correc

    Quote Originally Posted by djapigo View Post
    Sorry Pete, I seem to be always posting slower than you...
    I was beginning to think you were stalking me, Dennis !! <bg>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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