+ Reply to Thread
Results 1 to 11 of 11

Request: Assistance with arrays

  1. #1
    Registered User
    Join Date
    04-16-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Request: Assistance with arrays

    Hi all,

    Is it too late to say Happy New Year? Hmm.

    I have a challenge. I'm trying to write a formula that evaluates multiple conditions and then places a value in an array.

    The logic is as follows:

    1. Verify the "Status" (Column C) is "Won"
    2. If "Won", look in "Month Signed" (Column A) and identify Month
    3. Find Month in Columns D - O
    4. When Exact Month is identified, copy Value (Column B), in to corresponding Month.

    I have attached an example of the file i'm working on for reference.

    Thank you all in advance.

    Cheers, Sean
    Request Assistance.xlsx

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Request: Assistance with arrays

    Try

    =IF(AND($C2="Won",$A$2=D$1),$B2,"")

    Copy across and down

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

    Re: Request: Assistance with arrays

    Put this formula in D2:

    =IF(AND($C2="Won",$A2=D$1),$B2,"")

    Copy across to O2, then copy D2:O2 down as far as is needed.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    04-16-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Request: Assistance with arrays

    Hi John,

    Thank you. I copied that formula in and it works for the first row; however, in the second row I type in cell A3 Mar and it still puts the 200 (B3) in April.

    Any advice?

    Cheers, Sean

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

    Re: Request: Assistance with arrays

    John has the term $A$2 in his formula - it should be $A2.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    04-16-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Request: Assistance with arrays

    Hi Pete,

    Thank you! I just figured that out

    If i understand the formula correctly - you are referencing A2 to each cell from D1 to O3. Is that correct?

    Cheers, Sean

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

    Re: Request: Assistance with arrays

    On a particular row, the cell in column C should be "Won", and the cell in column A should be the month in row 1 (for columns D to O), and if this is the case then the formula will return the value from column B, otherwise it will return a blank.

    Hope this helps.

    Pete

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Request: Assistance with arrays

    Yes I realised I had put $A$2 but was busy so could not reply immediately.

    @Pete: thank you.

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

    Re: Request: Assistance with arrays

    Sean,

    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.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  10. #10
    Registered User
    Join Date
    04-16-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Request: Assistance with arrays

    Hi John and Pete,

    Thanks again! Reputation added and problem resolved.

    Cheers, Sean

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

    Re: Request: Assistance with arrays

    Thanks for doing that, Sean.

    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. [SOLVED] Request for Forumula Assistance
    By xDimitrius in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-05-2015, 03:49 PM
  2. Tables formula assistance request
    By SteveyD in forum Excel Formulas & Functions
    Replies: 35
    Last Post: 11-16-2014, 04:14 PM
  3. Request assistance with conditional formula
    By kbstone in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2014, 11:51 AM
  4. Request Formula assistance
    By Ptexcel1964 in forum Excel General
    Replies: 2
    Last Post: 07-05-2012, 01:51 PM
  5. Replies: 2
    Last Post: 07-06-2006, 09:10 AM
  6. Simplifying my previous Request for Assistance
    By in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2006, 09:10 AM
  7. Simplifying my previous Request for Assistance
    By in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2006, 09:10 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