+ Reply to Thread
Results 1 to 15 of 15

Incorporating an IF statement into a formula with a double Vlookup comparison

  1. #1
    Registered User
    Join Date
    08-30-2018
    Location
    Hastings, NE
    MS-Off Ver
    MS 365
    Posts
    74

    Incorporating an IF statement into a formula with a double Vlookup comparison

    So I just got a lot of help with developing the formula for F39, but there is an additional factor I have to plan for; cell A43. It states that IF the total family size is greater than 6, then add an additional $5,150 for each dependent. It's cell has a text format also: "Adjusted Threshold for Families Larger Than 6 People "$#,##0.

    Can this factor be incorporated into the existing F39 formula to only show up when the total family size is logged as being greater than 6, or do I need to change the A43 cell? I wanted it this way originally because 1) it's not very common to have families come in with a total size of 6, and 2) I didn't want to make a clunky list with all the myriad possibilities.

    Excel Forum Example.xlsx

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    Formatting A43 like that seems overly complicated when you could put the number in E43 and the text in the cell to the left of it.

    The comparison of VLOOKUP in F39 seems overly complicated, and it doesn't work for families over 6. It should be
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    But it is logically equivalent to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or even
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You cannot incorporate the arithmetic into the F39 formula because the F39 formula produces text. Using A43 is the correct solution. But I don't see that you need to change anything--it's already there.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    Hi,

    I don't understand why you chose the Longer, more complicated VLOOKUP formula compared to my simpler version that returns the Same result from your other thread.

    This modified version of my formula from your other thread accommodates your new requirement for families of 7 or more.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached.
    Attached Files Attached Files

  4. #4
    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
    52,939

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    How is this different from your post here/
    https://www.excelforum.com/excel-for...-a-result.html
    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

  5. #5
    Registered User
    Join Date
    08-30-2018
    Location
    Hastings, NE
    MS-Off Ver
    MS 365
    Posts
    74

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    This worked wonderfully, thank you. I can understand why this question frustrated you; it's because I don't have enough experience with formulas beyond elementary formats. I'm not even sure how to break your formula down into pathway segments to follow the path.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    Please respond to FDibbins question above. This appears to be a duplicate of another thread you started. We don't allow duplicates because people start answering both threads, creating confusion and possibly wasted effort.

  7. #7
    Registered User
    Join Date
    08-30-2018
    Location
    Hastings, NE
    MS-Off Ver
    MS 365
    Posts
    74

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    I was treating this post as an extension of the first post:
    How to get the Vlookups to work together

    Then,

    How does the greater than 6 family members incorporate into the formula, and does it need to be adjusted.

    Was this posted incorrectly?

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    The threads are so similar that they look the same to me, but you may not have intended them to be the same. The other thread looks resolved but PM me if you would like me to reopen it.

  9. #9
    Registered User
    Join Date
    01-04-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    Hi Friends,

    I require help.... I have a table with different headers like "Task" B column, Sub-task in C column, Description in D Column, Month name in E Column, Hours spent in F Column... For example for the month of August after entering the daily activity I would like the summary of August in another sheet. Means the "Task" in B column will be repeated on different dates in August, I want the task (assume - Coordination") in different dates to be grouped together and the total hour of Coordination is diplayed...

  10. #10
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    Quote Originally Posted by Kogen View Post
    This worked wonderfully, thank you. I can understand why this question frustrated you; it's because I don't have enough experience with formulas beyond elementary formats. I'm not even sure how to break your formula down into pathway segments to follow the path.
    Assuming you're responding to me, you're welcome.

  11. #11
    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
    52,939

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    jrammb welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Last edited by FDibbins; 09-02-2018 at 12:37 AM.

  12. #12
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    @Ford,

    As Post # 9 is not posted by OP, I think it's more of a Rule 2 violation?

  13. #13
    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
    52,939

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    Quote Originally Posted by jtakw View Post
    @Ford,

    As Post # 9 is not posted by OP, I think it's more of a Rule 2 violation?
    oops yes, you are correct. Apologies to jrammb for my quoting the wrong rule "(

  14. #14
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    I think no apology needed Ford, so jrammb should open a new thread for his/her query.

  15. #15
    Registered User
    Join Date
    01-04-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Incorporating an IF statement into a formula with a double Vlookup comparison

    Quote Originally Posted by jtakw View Post
    I think no apology needed Ford, so jrammb should open a new thread for his/her query.
    Am sorry Ford and others... I will open a new thread. Thanks for the information.

+ 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] Double Vlookup/If Formula Help
    By Freddyfroo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2016, 10:01 AM
  2. [SOLVED] Double VLookup Formula
    By rizmomin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2014, 10:28 PM
  3. Formula with double IF statement
    By Jennsy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-14-2014, 01:05 PM
  4. [SOLVED] Double Vlookup Formula in VBA
    By msawyer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2013, 07:23 PM
  5. Replies: 3
    Last Post: 04-06-2011, 12:57 PM
  6. Incorporating Vlookup in a IF Statement
    By Shams in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2006, 05:50 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