+ Reply to Thread
Results 1 to 10 of 10

IF formulae needed

Hybrid View

  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    Ipswich
    MS-Off Ver
    2010
    Posts
    9

    IF formulae needed

    Hi all,

    Sorry struggled to put a title. I'm trying to work out a formulae for Excel to help me assign users to certain groups.

    The excel document contains two sheets of text data and I need to pull data from one sheet and add it to the next if it meets certain criteria.

    I need the formulae to search sheet 1 to search text from column A and match that containing text with Sheet 2 column B (matching usernames). When match is found I need excel to pull the cell adjoining on sheet 2 to new column in Sheet 2.

    Struggling to explain as you can probably tell.

    Thanks,

  2. #2
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: IF formulae needed

    Hello,

    Could you link an example of the workbook?

    Try adding this formula to the new column in Sheet2 and drag down. Not sure this is what you're looking for or not.

    =IF(Sheet1!A1=B1,B1,"")
    Last edited by unit285; 12-04-2015 at 10:39 AM.

  3. #3
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Re: IF formulae needed

    Hi,

    Would it be something like this that you are looking for.

    I have put UserNames on Sheet 1 and the other details on Sheet 2. I have used Index and Match to find the name in Sheet 1 on Sheet 2 and enter the relevant P'Word.

    I have only used this info, to illustrate what I have done - as often UserName and Password go together.

    Regards,

    Sonia
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-04-2015
    Location
    Ipswich
    MS-Off Ver
    2010
    Posts
    9

    Re: IF formulae needed

    Hi,

    Thank you both for your help. Sorry I could respond I was away for the weekend.

    Attached is the date I'm looking for a formula for.Dummy Data.xlsx

    I'm after the charity the support from sheet 1 to be added to the last column in sheet 2.

    Thanks again

  5. #5
    Registered User
    Join Date
    07-16-2013
    Location
    Lincolnshire, UK
    MS-Off Ver
    Excel for Mac 2016
    Posts
    14

    Re: IF formulae needed

    Hi,

    I've added a further column in Sheet 1 for USERNAME. Splitting your original COLUMN A into two parts enables you to use a lookup to obtain the CHARITY information you're looking for. Hope this helps?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-04-2015
    Location
    Ipswich
    MS-Off Ver
    2010
    Posts
    9

    Re: IF formulae needed

    Hi,

    Cheers that works. Is there an easy way of splitting Column A, as the actual document is about 600 lines?

    Thanks,

  7. #7
    Registered User
    Join Date
    07-16-2013
    Location
    Lincolnshire, UK
    MS-Off Ver
    Excel for Mac 2016
    Posts
    14

    Re: IF formulae needed

    I've attached a further file which hopefully meets your requirements.

    In short, I've inserted a new column (B) on Sheet1 which extracts the username from the data in brackets from column A. This is an array formula so should be entered using CMD+SHIFT+ENTER (Mac) or CTRL+SHIFT+ENTER (Win).

    Then I've adjusted the original lookup to use the new column as it's starting point in the lookup. Looks to be working from here.
    Attached Files Attached Files

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: IF formulae needed

    Not sure what was offered inthe other suggestions (thats why we ask for the formula as well as the file, so members dont need to open an attachment just to see suggestions), but this should work...
    =VLOOKUP(A2&"*",Sheet1!$A$2:$B$6,2,0)
    copied down

    This will fail if you have more than 1 person with the same name
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    12-04-2015
    Location
    Ipswich
    MS-Off Ver
    2010
    Posts
    9

    Re: IF formulae needed

    That's spot on. thank you so much for your help

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: IF formulae needed

    Quote Originally Posted by Hamsto View Post
    That's spot on. thank you so much for your help
    Just out of curiosity, which 1 worked for you?

    Alsom if this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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. Tough set of formulae - IF, AND and probably other functions needed!
    By joninellon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2012, 06:48 AM
  2. Replies: 2
    Last Post: 07-25-2012, 07:51 AM
  3. help needed to 'decode' some excel formulae
    By mcenteeg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2011, 01:08 PM
  4. % formulae needed
    By BUSJEDWA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-02-2008, 04:43 PM
  5. [SOLVED] Help needed to Create Formulae
    By abdulsalam.abdullah@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2006, 10:10 AM
  6. [SOLVED] students grades, formulae to calculate what grade is needed based.
    By mjreisbord in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] students grades, formulae to calculate what grade is needed based.
    By mjreisbord in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. students grades, formulae to calculate what grade is needed based.
    By mjreisbord in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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