Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  • Thread Tools
  1. WS Lounge VIP
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    5,797
    Thanks
    0
    Thanked 68 Times in 64 Posts

    Re: Lookup Table / (Excel 2003)

    Braddy,
    You can write that formula as:
    <code>=IF(OR(C5={56,265,275,"17Y"}),"Distr",IF(AND (G5>0,H5=0),"Free/NSI","Keep"))</code>
    which may be easier to maintain.
    Regards,
    Rory
    Microsoft MVP - Excel.

  2. Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,911
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Lookup Table / (Excel 2003)

    Hi Rory

    Yeah that works nicely, Is there a limit to how many variables you can put between the curly brackets?

    Grateful Thanks

    Braddy
    If you are a fool at forty, you will always be a fool

  3. WS Lounge VIP
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    5,797
    Thanks
    0
    Thanked 68 Times in 64 Posts

    Re: Lookup Table / (Excel 2003)

    Honestly, I don't know. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15> I used 50 as a test just now without problems but there might be issues if the formula gets too long.
    Regards,
    Rory
    Microsoft MVP - Excel.

  4. Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,911
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Lookup Table / (Excel 2003)

    Hi Rory

    I will test it to destruction <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

    Thanks

    Braddy
    If you are a fool at forty, you will always be a fool

  5. WS Lounge VIP
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    5,797
    Thanks
    0
    Thanked 68 Times in 64 Posts

    Re: Lookup Table / (Excel 2003)

    I would say that if you get anywhere near a limit (or indeed 50), you should probably be looking at lookup tables, which will be easier to maintain.
    Regards,
    Rory
    Microsoft MVP - Excel.

  6. WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    10,196
    Thanks
    8
    Thanked 165 Times in 160 Posts

    Re: Lookup Table / (Excel 2003)

    An easier one to maintain, mibht be to use a Match for the first and second.
    something like:

    =IF(isnumber(Match(A2,<theLookuprange>,0)),"Dump Acc",IF(OR(D2=275,D2=265,D2="17Y",D2=56),"Distr",I F(AND(G2>0,H2>0),"Free/NSI","Keep")))

    or even:
    =IF(isnumber(Match(A2,<theLookuprange>,0)),"Dump Acc",IF(isnumber(match(d2,<otherlookup>,0)),"Distr ",IF(AND(G2>0,H2>0),"Free/NSI","Keep")))

    The names in brackets could be names or ranges as desired for looking up. They could be dynamic ranges that grow as more items are added...

    Steve

  7. Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,911
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Lookup Table / (Excel 2003)

    Hi Steve

    That looks great I will give it whirl, Thanks again.

    Braddy
    If you are a fool at forty, you will always be a fool

  8. 3 Star Lounger
    Join Date
    Jan 2002
    Location
    The Hague, Netherlands
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Lookup Table / (Excel 2003)

    > The names in brackets could be names or ranges as desired for looking up. They could be dynamic ranges that grow as more items are added...

    Since he is on Excel 2003, he can better convert the lookup tables into lists with Data|List|Create List, which makes defining ranges by means of dynamic formulas superfluous.
    Microsoft MVP - Excel

  9. WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    10,196
    Thanks
    8
    Thanked 165 Times in 160 Posts

    Re: Lookup Table / (Excel 2003)

    Thanks for the info.

    I do not have XL2003 (I only obtained XL2002 last month). Most of my answers are more "general" since they will work with XL97.

    Steve

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •