can please check this formula and find
HTML Code:
can please check this formula and find
HTML Code:
Find what? What is the formula meant to do? Explain in words what you want.
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.
in cell B12 looking for the following three chice
1- Present At start
2-Present At start & End
3-Present At End
if first choice is present in B12 the value is will be data in E1
if second choice is present in B12 the value is will be data in E2
if third choice is present in B12 the value is will be data in E3
Try this:
=IF(SEARCH("Present At start",B12), E1,IF(SEARCH("Present At start & End",B12),E2,IF(SEARCH("Present At End",B12),E3,"")))
You aren't giving enough detail.
Will you please attach a sample Excel workbook?
1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.
2. Make sure that your desired solution is also shown (mock up the results manually).
3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).
4. Try to avoid using merged cells as they cause lots of problems.
Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
please see my attached example
It will not work because
"Present At start" is found in conditions 1 and 2: you need to change condition 2 to "Both Present" or similar.
=IF(ISNUMBER(SEARCH("Present At start",B12)), E1,IF(ISNUMBER(SEARCH("Both Present",B12)),E2,IF(ISNUMBER(SEARCH("Present At End",B12)),E3,"")))
Alternative ..
=IF(EXACT(UPPER("Present at Start"),UPPER(B12)),E1,IF(EXACT(UPPER("Present At Start & End"),UPPER(B12)),E2,IF(EXACT(UPPER("Present At End"),UPPER(B12)),E3,"")))
You can remove the UPPER if the selection is via drop-down BUT ensure text in formula matches the drop down values.
Just a trick :
PHP Code:
B15=INDEX(F1:F3;MATCH(LEN(B12);{16;22;14};0))
Brilliant, Ketxu ... except for one small thing:
What happens if B12 contains this?
"Does this match?"
thank you dear AliGW and Ketux for your help
best regards
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks