+ Reply to Thread
Results 1 to 11 of 11

lookup across sheets

Hybrid View

  1. #1
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi DrChris,

    You seem to have to many parenthesis (), but it seems to work OK for me?
    Attached Files Attached Files
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  2. #2
    Registered User
    Join Date
    08-24-2007
    Posts
    35
    i thought you could only nest upto 7 if's?????

  3. #3
    Registered User
    Join Date
    10-12-2007
    Posts
    36
    Hi Chippy

    Cheers for the reply

    Indeed it does, but adding another IF condition (for september for example), doesnt seem to work!

    =IF(K29=Jan!$B$34,Jan!$D$34,IF(K29=Feb!$B$31,Feb!$D$31,IF(K29=Mar!$B$33,Mar!$D$33,IF(K29=April!$B$32,April!$D$32,IF(K29=May!$B$34,May!$D$34,IF(K29=June!$B$32,June!$D$32,IF(K29=July!$B$33,July!$D$33,IF(K29=August!$B$34,August!$D$34,IF(K29=Sept!$B$31,Sept!$D$31,"")))))))))

    Any ideas?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-12-2007
    Posts
    36
    JustinBram: Looks like its 8

    Thing is, I need to do that for every month: i.e 12 IFs!

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    OK, another approach is a VLOOKUP may be?
    Attached Files Attached Files

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Some links re if statements

    However if you need more than 7 if's you might be better off setting up a table and doing a vlookup

    http://www.usd.edu/trio/tut/excel/adv/26if.html

    http://www.cpearson.com/excel/nested.htm

    http://www.j-walk.com/ss/excel/usertips/tip080.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe a macro might be better.

    See attached example. Code from this link

    http://www.ozgrid.com/VBA/VlookupAllSheets.htm

    VBA Noob
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-12-2007
    Posts
    36
    that is perfect

    i even said 'wow' a bit loudly in the office when i got it to work and ppl were looking at me funny

    thank u both oldchippy and vba_noob
    Last edited by drchris; 10-12-2007 at 09:28 AM.

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad you got a couple of solutions for your problem.

    VBA Noob

  10. #10
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Quote Originally Posted by drchris
    that is perfect

    i even said 'wow' a bit loudly in the office when i got it to work and ppl were looking at me funny

    thank u both oldchippy and vba_noob
    Always glad to help - thanks for the feedback

+ 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