+ Reply to Thread
Results 1 to 3 of 3

formula that cross references

  1. #1
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690

    formula that cross references

    hi guys
    im hoping some one can give me the answer to a formula that i need

    if b1>b2 then put cell a1 into cell d2 but if b2>b1 then put cell a2 into cell d2

    regards

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    D2: =INDEX(A1:A2,1+(B2>B1),1)

    or

    D2: =IF(B2>B1,A2,A1)

    However you don't specify what happens if B1=B2... both of the above assume if B2=B1 then A1 is used in D2.

  3. #3
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    thanks donkey
    b2 or b1 will never be the same

+ 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