+ Reply to Thread
Results 1 to 4 of 4

If function making a list on differnt worksheet

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    92

    If function making a list on differnt worksheet

    I am currently using =IF(Sheet1!H1="x",Sheet1!A1,"") to compile a list of items on Sheet 2 from Sheet 1. The issue I am having with this formula is where ever the information is on Sheet 1, it is put into the same row on Sheet 2.

    Ex: I have an "x" in cells H2, H4, and H10, and the information is showing up on Sheet 2 in cells A2, A4, and A10.

    Is there a way to tweak the formula to have the information from Sheet 1 Cells A2, A4, and A10 be in Sheet 2 Cells A1, A2, and A3?

    Thank you for your help.

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

    Re: If function making a list on differnt worksheet

    Put this formula in cell I2 of Sheet1:

    =IF(H2="x",MAX(I$1:I1)+1,"-")

    and copy that down as far as you need to.

    Then you can use this formula in cell A1 of Sheet2:

    =IFERROR(INDEX(Sheet1!H:H,MATCH(ROWS($1:1),Sheet1!I:I,0)),"")

    and copy that down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: If function making a list on differnt worksheet

    Worked for me. Thanks

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

    Re: If function making a list on differnt worksheet

    Glad to hear it - thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 06-17-2013, 02:12 PM
  2. Add up differnt variables in differnt named ranges
    By danielgri14 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-09-2011, 09:40 PM
  3. Making a Master List on a different worksheet
    By quasimoto in forum Excel General
    Replies: 3
    Last Post: 02-02-2011, 04:11 AM
  4. Replies: 3
    Last Post: 02-21-2010, 12:48 AM
  5. display data from a list in a differnt WS?
    By legepe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2009, 09:44 AM

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