Results 1 to 8 of 8

Replacing IF /AND formula with VLOOKUP

Threaded View

  1. #1
    Registered User
    Join Date
    02-17-2009
    Location
    LA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Replacing IF /AND formula with VLOOKUP

    Ok so this formula does work but breaks after to many if and statements. How can I preform the same task just in a better way?

    =IF(sheet1!D2=sheet2!$A$3,AND(sheet1!E2=sheet2!$C$1,sheet2!$C$3)
    ,IF(sheet1!D2=sheet2!$A$3,AND(sheet1!E2=sheet2!$D$1,sheet2!$D$3)
    ,IF(sheet1!D2=sheet2!$A$3,AND(sheet1!E2=sheet2!$E$1,sheet2!$E$3)
    ,IF(sheet1!D2=sheet2!$A$3,AND(sheet1!E2=sheet2!$F$1,sheet2!$F$3)
    ,IF(sheet1!D2=sheet2!$A$4,AND(sheet1!E2=sheet2!$C$1,sheet2!$C$4)
    ,IF(sheet1!D2=sheet2!$A$4,AND(sheet1!E2=sheet2!$D$1,sheet2!$D$4)
    ,IF(sheet1!D2=sheet2!$A$4,AND(sheet1!E2=sheet2!$E$1,sheet2!$E$4)
    ,IF(sheet1!D2=sheet2!$A$4,AND(sheet1!E2=sheet2!$F$1,sheet2!$F$4)
    ,IF(sheet1!D2=sheet2!$A$5,AND(sheet1!E2=sheet2!$C$1,sheet2!$C$5)
    ,IF(sheet1!D2=sheet2!$A$5,AND(sheet1!E2=sheet2!$D$1,sheet2!$D$5)
    ,IF(sheet1!D2=sheet2!$A$5,AND(sheet1!E2=sheet2!$E$1,sheet2!$E$5)
    ,IF(sheet1!D2=sheet2!$A$5,AND(sheet1!E2=sheet2!$F$1,sheet2!$F$5)))))))))))))

    Thanks :P
    Last edited by brentc; 02-17-2009 at 06:18 PM.

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