+ Reply to Thread
Results 1 to 10 of 10

If formula reading from 2 different pieces of information.

  1. #1
    Registered User
    Join Date
    02-04-2019
    Location
    Essex
    MS-Off Ver
    365
    Posts
    63

    If formula reading from 2 different pieces of information.

    So i have an IF formula that for some reason i cannot get my head around.

    I have information in cell C5 and a day in F5.

    I would like the formula to read if cell C5="WASP" and F5="SATURDAY" or "SUNDAY" then AA5+50. If C5 does not contain "WASP" or it is not a weekend day shown in F5 then i would like it to stay blank. I have tried many different ways, but cannot get it to work!


    Any help would be much appreciated.
    Last edited by JChandler8314; 10-20-2020 at 06:19 AM. Reason: Change of title.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: I think this will be easy for some of you...

    Hi. There's a very good chance that the Forum Moderators will object to your thread title.
    If so, it will HAVE to be changed. To avoid any issues and delays, maybe you should change it now.
    An ideal thread title should reflect the sort of phrase that you would use if you were asking Google for an answer.

    Your current title would produce a squillion useless hits.

    So, it would be a good idea for you to take a moment to amend your thread title. Make sure that the title properly explains your request. To edit the thread title, open the original post, click "Edit Post" (bottom right) to access the area where you can edit your title.

    Maybe something like:

    "IF formula with a condition"

    Also, I don't understand what AA5 has got to do with it. Please explain again... the various scenarios... the various outcomes.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-04-2019
    Location
    Essex
    MS-Off Ver
    365
    Posts
    63

    Re: I think this will be easy for some of you...

    Hi,

    Thanks for that and very good point! I have now changed this...

    regarding the AA5+50:
    If C5 does ="WASP" and F5 does = "Saturday" or "SUNDAY" then i would like the formula to calculate cell AA5+50.
    If C5 does not ="WASP" and F5 does not = "Saturday" or "SUNDAY" then i would like the cell to stay blank.

    Hopefully this make more sense?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: If formula reading from 2 different pieces of information.

    Much better... on both counts.

    is this it?

    =IF(AND(C5="Wasp",OR(F5={"Saturday","Sunday"})),AA5+50,"")

  5. #5
    Registered User
    Join Date
    02-04-2019
    Location
    Essex
    MS-Off Ver
    365
    Posts
    63

    Re: If formula reading from 2 different pieces of information.

    HI,

    Thanks for the help, unfortunately it looks as though it is reading "Saturday" and "Sunday" as the same part of the formula rather than reading it as 2 separate "logical".

    any ideas please?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: If formula reading from 2 different pieces of information.

    You've lost me. Show me how it isn't working on the attached aheet. What combination gives you the wrong answer?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-04-2019
    Location
    Essex
    MS-Off Ver
    365
    Posts
    63

    Re: If formula reading from 2 different pieces of information.

    Hi,

    I have just used your sheet and is working fine.

    I have taken all sensitive information out and created a 2 line version of the actual sheet. The formula has been entered into cell AB5. But is not working?

    Could this be because Saturday and Sunday isn't manually typed in? I don't think that would matter but I'm completely stumped so clutching at straws now...
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: If formula reading from 2 different pieces of information.

    It makes all the difference in the world. It was a DATE formatted to look like the name of a day of the week.

    Use this:

    =IF(AND(C5="Wasp",OR(WEEKDAY(F5)={1,7})),AA5+50,"")

  9. #9
    Registered User
    Join Date
    02-04-2019
    Location
    Essex
    MS-Off Ver
    365
    Posts
    63

    Re: If formula reading from 2 different pieces of information.

    wow!

    It works like a dream!

    Thank you very much for your help, its very much appreciated. I have added a rep for you, as that's all i can do.

    Thankyou again, very impressive stuff.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: If formula reading from 2 different pieces of information.

    You're welcome. Rep's fine as a "reward", all a bit pointless, but engenders a little competition amongst many of the solvers!!

    Or, it shows you who has too much time on their hands.

+ 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] Easy Task: 3 checkboxes, if chkbox 2or3 selected chckbox1 unselected, easy solution?
    By desantech in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2018, 07:39 AM
  2. [SOLVED] It's probably easy but I don't know how....
    By AdrinBig in forum Excel General
    Replies: 10
    Last Post: 02-06-2015, 05:25 AM
  3. I know its easy!!
    By girl_alex in forum Excel General
    Replies: 1
    Last Post: 10-04-2013, 02:24 PM
  4. This should be easy, but...
    By ernest t bass in forum Excel General
    Replies: 4
    Last Post: 05-08-2012, 10:10 PM
  5. Is there an easy way to...
    By JCL in forum Excel General
    Replies: 4
    Last Post: 06-01-2006, 04:08 AM
  6. [SOLVED] This should be easy...
    By Jerry in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-06-2005, 12:20 PM
  7. new user with easy question? not easy for me
    By speakeztruth in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-03-2005, 05: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