Hello
i want to enter 1 number in A1 and text in A2 and return a spacific text in A3
i cant seem to combine 2 IF (Please see attched)
=IF(B1="Paul","Class 1")
Paul
Hello
i want to enter 1 number in A1 and text in A2 and return a spacific text in A3
i cant seem to combine 2 IF (Please see attched)
=IF(B1="Paul","Class 1")
Paul
So, what do you want the answer to look like?
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
You would nest them like so
=IF(B1="paul", "Class 1", IF(B1="Richard", "Class 2", IF(....)
How many names are there. Maybe a VLOOKUP would work better for you.
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
What else do you want the formula to do? I don't understand what the second IF statement would need to check. Please be specific (your attachment doesn't really help).
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
i want to enter 5000003 in A1 and Paul in A2, I theses both are entered i want C1 to say Class 1
if they are not entered correctly return 0
Im sure there is more to this, but this gives you what you asked for...
=if(and(A1=50000003,B1="Paul),"Class 1",0)
Last edited by FDibbins; 04-11-2017 at 02:29 PM.
maybe: IF(AND(A1=5000003,A2="Paul"),"Class 1",0)
thanks FDibbins. Worked well
happy to help
(that is a VERY specific formula, and like I said, Im sure there is more to this than what you have said - probably see you back again soon )
Hi,
Using your table in A1:C6
and 500000 in E1 and Paul in E2 then one way is with the Array formula
Formula:Please Login or Register to view this content.
Note this is an array formula and must be entered with Ctrl-Shift-Enter. When you do in the formula bar you'll see the formula surrounded by { }
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks