IF/AND/ISBLANK
I have a Master sheet with 2 columns (A column with account numbers and B column with some blank cells and some cells with the letter Y ). I also have my separate review sheet with column C with account numbers. I want to reference the Master sheet to determine if B column has a blank cell and if so does the account number on that row match any of the accounts numbers on my review sheet row. If it does I want it to return Yes and if not No on the review sheet. I created a column on the review sheet for the response. I am using this formula but am getting "#incorrect argument set". =IF(AND(ISBLANK({Column B}, IF(COUNTIF({Column A}, Column[email protected]) > 0, "Yes", "No")))). Please advise the issue with my formula or a better formula.
Answers
-
Nick Korna ✭✭✭✭✭✭
Would something like this work for you?
=IFERROR(IF(VLOOKUP([email protected], {Column A + Column B}, 2, false) = "", "Yes", "No"), "Not on master list")
If the account number in C is found in column A and column B is blank: Yes
C is found and B is filled: No
C is not found: Not on master list
You can obviously change the text as desired (for example changing the "Not on master list" to "" to show nothing and the check for if the value is blank/not to display a value if the account number is found.
Hope this helps, just ask if you've any questions.
-
Kaveri Vipat ✭✭✭✭✭
Hi Noella
I hope you are doing well and safe.
Please try this formula - =IFERROR(IF(INDEX({B Column}, MATCH([Column C]@row, {A Column}, 0)) = "", "Yes", "No"), "")
I hope this is useful to you, please let me know if you need any other help.
Have a Good Day!
Thanks,
Kaveri Vipat
Senior Associate - Smartsheet Development, Ignatiuz Software
2023 Core Product Certified
-
C. Perry ✭✭✭
Thank you. The formula worked. I made a few changes.=IFERROR(IF(INDEX({Option Exception Master List Range 1}, MATCH([email protected], {Option Exception Master List}, 0)) = "N", "Yes-Not Discretionary", ""), "Not on List").My only issue now is if the master listcolumn Bhas a Y I need for the above formula to also use if = "Y" "Yes-Discretionary". I need to combine the two below formulas.
=IFERROR(IF(INDEX({Option Exception Master List Range 1}, MATCH([email protected], {Option Exception Master List}, 0)) = "N", "Yes-Not Discretionary", ""), "Not on List").
=IFERROR(IF(INDEX({Option Exception Master List Range 1}, MATCH([email protected], {Option Exception Master List}, 0)) = "A", "Yes-Discretionary", "").
Another problem I was having was if the cell was blank and no number it returned want ever was in the""space so I put this there to return a blank space. I need for it to return a empty space if the cell is blank.
Help Article Resources
Categories
=IF(COUNT(CHILDREN()) = 0, IF(OR(Done@row = 1, [N\/A]@row = 1), 1, 0), AVG(CHILDREN()))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":108195,"type":"question","name":"COUNTIF Function Not Working Correctly","excerpt":"Hello, I have a COUNTIF function I am using to count all cells that are 'Blank' in a column. We should have one result, but the formula is showing as zero. Any thoughts on this one? =COUNTIF([Account Dashboard]:[Account Dashboard], \" \")","snippet":"Hello, I have a COUNTIF function I am using to count all cells that are 'Blank' in a column. We should have one result, but the formula is showing as zero. Any thoughts on this…","categoryID":322,"dateInserted":"2023-07-27T16:41:32+00:00","dateUpdated":null,"dateLastComment":"2023-07-27T19:11:08+00:00","insertUserID":164192,"insertUser":{"userID":164192,"name":"ewitt19205","url":"https:\/\/community.smartsheet.com\/profile\/ewitt19205","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!mo_vH-5dWnI!5OcveUI6Zjo!UtWovaSRry_","dateLastActive":"2023-07-27T19:07:23+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":164192,"lastUser":{"userID":164192,"name":"ewitt19205","url":"https:\/\/community.smartsheet.com\/profile\/ewitt19205","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!mo_vH-5dWnI!5OcveUI6Zjo!UtWovaSRry_","dateLastActive":"2023-07-27T19:07:23+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":21,"score":null,"hot":3380962360,"url":"https:\/\/community.smartsheet.com\/discussion\/108195\/countif-function-not-working-correctly","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108195\/countif-function-not-working-correctly","format":"Rich","lastPost":{"discussionID":108195,"commentID":387638,"name":"Re: COUNTIF Function Not Working Correctly","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/387638#Comment_387638","dateInserted":"2023-07-27T19:11:08+00:00","insertUserID":164192,"insertUser":{"userID":164192,"name":"ewitt19205","url":"https:\/\/community.smartsheet.com\/profile\/ewitt19205","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!mo_vH-5dWnI!5OcveUI6Zjo!UtWovaSRry_","dateLastActive":"2023-07-27T19:07:23+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-07-27T19:10:56+00:00","dateAnswered":"2023-07-27T16:47:29+00:00","acceptedAnswers":[{"commentID":387588,"body":"