Trouble using If Then function - excel-formula

I am trying to create an Excel document where I say if one cell says dismissed then the other cell should say No Intake Completed, if it says pending then the second cell would say awaiting intake. If it says neither I would like the next cell to remain blank. Can anyone help?

You can use simple if statement
=IF(A1="dismissed","No Intake Completed", IF(A1="pending","awaiting intake", IF(A1="neither","", "It is something else")))
It is checking value in A1 according to the logic you have written in your question.

Related

How to add running count to excel cell, which already has text in it?

Would anyone have advise on how to add running count to excel cells, which already have text in them, and without removing the said text.
Few screenshots will follow to clarify my issue.
I have received a ton of sheets which have a test case name as a text/string in the C column and they are missing a running count from the beginning of the cell (not sure if the "running count" is the correct term).
In the first screenshot you can see how I need them to be, as well as in the couple first rows of the second screenshot (column C). So the original text could be for example "Purchase order" and I want it to be "1. Purchase order" and the next cell would be "2. Purchase order" etc.
Screenshot 1.
Screenshot 2.
I imagine there isn't an already existing function in excel which would solve my problem. I have played around with macros and VBA some years ago, but don't have any clue from on top of my head how to solve this.
Perhaps a macro that would go through each cell from the selected column one by one, cut the existing text, add a variable number to the cell and then copy the cut text back there after the variable, then add +1 to the variable before moving to the next cell?
So I somewhat understand the logic how it could be done, but don't have any memory how the syntax and the operators etc. work in VBA.
Thank you in advance.
Not exactly sure what you want from the images, but you can do things like this:
If cell A1 has 942
and cell B1 has "slices of bread"
Then C1 can have the result "942 slices of bread":
=A1&" "&B1
Not sure neither if running count is the right term, but you can do it with a helper column and an easy formula:
=COUNTIF($C$2:C2;C2)&". "&C2
Then you can copy/paste as values and delete helper column

Go down a column until a certain cell and then select a cell to the right

Trying to automate a task using VBA but am very beginner with it.
I'm trying to select column x, go down that column until it says a certain value, and then select the cell that is one to the right of the cell that contains that value. IE go down column x until it says "apple" and then select the number to the right of the cell containing "apple"
After this, I want to go to the next sheet and perform the same action. I know I need to perform some type of loop but mostly confused about how to go down a column until a certain cell and then to the right.
You want to increase the range. This thread should be helpful to you.
https://answers.microsoft.com/en-us/msoffice/forum/all/vba-select-the-ranges-next-to-the-activecell/80a080aa-6355-4700-9574-83197190164a
**FYI Need to include specific code you have tried to use to resolve and specific errors if there are any. You will get less responses if you have a 'lame' question (i.e. just hoping someone else to do it for you)

Excel IF with text as option for cell as well as numbers

I'm trying to write an IF statement for Excel which is based on:
IF E93>E88 put Yes
IF E93<E88 put No
E93 can also be have the text N/A in it based on some earlier calculations
If E93 has N/A in it then I want this new IF function to put N/A as well as the output into this new cell.
If have so far:
=IF(AND(E93>E88,"Yes"),IF(E93<E88,"No"),"N/A")
But I get a VALUE# error when E93 has the text N/A which is itself put there by another IF function. The function putting N/A into E93 is:
=IF((E81>=E84),E81-E84,"N/A")
Any suggestions would be most welcome
try:
=if(e93="N/A","N/A",if(e93>e88,"Yes",if(e93<e88,"No")))
Since you have not defined what should happen if e93=e88, note that this formula will return FALSE if e93 <> "N/A" and e93=e88
Not entirely sure if you will need to look out for this from the context of your question. But you may want to be explicit in the out put if the 2 cells are equal.
For example this would make 2 equal cells come out “No”
=IF(ISNA(E93),NA(),IF(E93>E88,”Yes”,“No”))
If a different output should be given for equal cells;
=IF(ISNA(E93),NA(),IF(E93>E88,”Yes”,IF(E93<E88,“No”,”Equal”)))
You can't perform relational operations on a text value "N/A", except '='. Thats why you are getting an error.
Try this formula :
=IF(E93="N/A","N/A",IF(E93>E88,"Yes","No"))
By this formula, first of all, it will be checked whether cell E93 contains "N/A" or not. If not, we can safely use relational operators on it.

How to add a text automatically to an Excel cell when cells are filled?

In cell 'S3' I want a Status Column, I want the cells in the status column to either say Awaiting, In SC, Awaiting Quote, or Complete.
So I guess I need the cell to say 'Awaiting' when the 'F3' is blank, but when 'F3' isn't blank I need it to say 'In SC', then when 'N3' is filled in I need it to change to 'Awaiting Quote' and then finally when 'R3' is filled in I need it to change to 'Complete'.
Your requirements aren't completely clear, but the following seems to be what you want. In S3 enter:
=IF(ISBLANK(F3),"Awaiting",IF(ISBLANK(N3),"In SC",IF(ISBLANK(R3),"Awaiting Quote","Complete")))
The basic idea is that a sequence of requirements (where later requirements kick in under the assumption that the previous requirements are met) can be expressed by nested IF() functions. Note that this formula can't control the order in which users enter data, so it doesn't really express the flow of time that your question suggests. If you really wanted that then you would either need VBA or perhaps clever uses of data validation in the cells F3, N3, R3.

Loop through column, search for text, get value of X

I would like to create a CommandButton macro in excel to determine if the name is the same with the one I'm searching for and if it is the same I will be getting the value of the cell beside it and add it all together to get the final amount.
This will be the example that I would like to do:
this will be the flow:
I will first check if the cell value is the same with the name
If it is James I will get the amount and add it to the total value for James, same goes for Ramirez
After everything is checked the accumulated value will then be placed on the cell beside James/Ramirez's name
Is there a way to do this in Excel? or any faster way to do this without using a commandbutton?
You don't need to use marco for this.
You can simply type in a function
In the example shown below,
E2:=SUMIF(A2:A6,D2,B2:B6)
E3:=SUMIF(A2:A6,D3,B2:B6)
EXPLANATION
=SUMIF(range_where_the_keyword_will_be,term_to_search,corresponding_values)
If you type "Ramirez" in D2, E2 will give you "300".
TIPS
If you want it to give you a message (such as, "not existing"), when you type in a name that is not in the list, you can try the function below.
=IF(COUNTIF(A2:A6,D2)<>0,SUMIF(A2:A6,D2,B2:B6),"Not existing")

Resources