Vai al contenuto principale

Come restituire il valore in un'altra cella se una cella contiene un determinato testo in Excel?

Come nell'esempio riportato di seguito, quando la cella E6 contiene il valore "Sì", la cella F6 verrà automaticamente popolata con il valore "approva". Se modifichi "Sì" in "No" o "Neutrality" in E6, il valore in F6 verrà modificato immediatamente in "Nega" o "Riconsidera". Come puoi fare per raggiungerlo? Questo articolo raccoglie alcuni metodi utili per aiutarti a risolverlo facilmente.


Restituisce il valore in un'altra cella se una cella contiene un determinato testo con formula

Per restituire il valore in un'altra cella se una cella contiene solo un testo specifico, prova la seguente formula. Ad esempio, se B5 contiene "Sì", restituire "Approva" in D5, altrimenti restituire "No qualify". Si prega di fare quanto segue.

Seleziona D5 e copia la formula sottostante e premi il tasto entrare chiave. Vedi screenshot:

Formula: Restituisce il valore in un'altra cella se una cella contiene un determinato testo

= SE (ISNUMBER (SEARCH ("",D5)), "approvare","Nessuna qualificazione")

Note:

1. Nella formula, "", D5, "approvare" e "Nessuna qualificazione"Indica che se la cella B5 contiene il testo" Sì ", la cella specificata verrà popolata con il testo" approva ", altrimenti verrà riempita con" Nessuna qualifica ". Puoi modificarli in base alle tue esigenze.

2. Per restituire il valore da altre celle (come K8 e K9) in base a un valore di cella specificato, utilizzare questa formula:

= SE (ISNUMBER (SEARCH ("",D5)),K8,K9)

Seleziona facilmente intere righe o intere righe nella selezione in base al valore della cella in una determinata colonna:

Le Seleziona celle specifiche utilità di Kutools for Excel può aiutarti a selezionare rapidamente intere righe o intere righe nella selezione in base al valore di cella specifico in una determinata colonna in Excel.  Scarica subito il percorso gratuito completo di 60 giorni di Kutools per Excel!


Restituisce i valori in un'altra cella se una cella contiene diversi testi con formula

Questa sezione ti mostrerà la formula per restituire i valori in un'altra cella se una cella contiene testo diverso in Excel.

1. È necessario creare una tabella con i valori specifici e restituire i valori che si trovano separatamente in due colonne. Vedi screenshot:

2. Selezionare una cella vuota per restituire il valore, digitare la formula sottostante e premere il tasto entrare chiave per ottenere il risultato. Vedi screenshot:

Formula: Restituisce i valori in un'altra cella se una cella contiene testi diversi

= VLOOKUP (E6,B5: C7,2, FALSO)

Note:

Nella formula, E6 è la cella contiene il valore specifico su cui restituirai il valore in base, B5: C7 è l'intervallo di colonne contenente i valori specifici ei valori restituiti, il 2 numero significa che i valori restituiti si trovano nella seconda colonna dell'intervallo della tabella.

D'ora in poi, quando si cambia il valore in E6 in uno specifico, il valore corrispondente verrà restituito immediatamente in F6.


Restituisci facilmente valori in un'altra cella se una cella contiene testi diversi

In realtà, puoi risolvere il problema di cui sopra in un modo più semplice. Il Cerca un valore nell'elenco utilità di Kutools for Excel può aiutarti a raggiungerlo con solo pochi clic senza ricordare la formula.

1. Come per il metodo precedente, è inoltre necessario creare una tabella con i valori specifici e restituire i valori che si trovano separatamente in due colonne.

2. Selezionare una cella vuota per visualizzare il risultato (qui seleziono F6), quindi fare clic Kutools > formula Helper > formula Helper. Vedi screenshot:

3. Nel formula Helper finestra di dialogo, configurare come segue:

  • 3.1 Nel Scegli una formula casella, trova e seleziona Cerca un valore nell'elenco;
    Suggerimenti:: Puoi controllare il file Filtro casella, immettere una determinata parola nella casella di testo per filtrare rapidamente la formula.
  • 3.2 Nel Matrice di tabella casella, seleziona la tabella senza intestazioni che hai creato nel passaggio 1;
  • 3.2 Nel Valore di ricerca casella, seleziona la cella contiene il valore specifico su cui restituirai il valore in base;
  • 3.3 Nel Colonna casella, specifica la colonna da cui restituirai il valore corrispondente. Oppure puoi inserire il numero della colonna nella casella di testo direttamente di cui hai bisogno.
  • 3.4 Fare clic su OK pulsante. Vedi screenshot:

D'ora in poi, quando si cambia il valore in E6 in uno specifico, il valore corrispondente verrà restituito immediatamente in F6. Vedi il risultato come sotto:

  Se desideri avere una prova gratuita (30 giorni) di questa utility, fare clic per scaricarlo, quindi andare ad applicare l'operazione secondo i passaggi precedenti.


Kutools per Excel - Ti aiuta a finire il lavoro sempre in anticipo, ad avere più tempo per goderti la vita
Ti capita spesso di ritrovarti a giocare al passo con il lavoro, la mancanza di tempo da dedicare a te stesso e alla famiglia?  Kutools for Excel può aiutarti ad affrontare 80% Eccellere i puzzle e migliorare l'efficienza del lavoro dell'80%, darti più tempo per prenderti cura della famiglia e goderti la vita.
300 strumenti avanzati per 1500 scenari di lavoro, rendono il tuo lavoro molto più semplice che mai.
Non è più necessario memorizzare formule e codici VBA, da ora in poi dai una pausa al tuo cervello.
Le operazioni complicate e ripetute possono essere eseguite una sola volta in pochi secondi.
Riduci migliaia di operazioni con tastiera e mouse ogni giorno, saluta subito le malattie professionali.
Diventa un esperto di Excel in 3 minuti, ti aiuta a ottenere rapidamente un riconoscimento e una promozione di aumento di stipendio.
110,000 persone altamente efficienti e la scelta di oltre 300 aziende di fama mondiale.
Rendi i tuoi $ 39.0 più di $ 4000.0 di formazione di altri.
Prova gratuita di tutte le funzionalità per 30 giorni. Garanzia di rimborso di 60 giorni senza motivo.

Comments (98)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What would I need to add to this formula (Method A) to get a third BLANK option? And where would it go?
Example:
If the cell I'm searching is blank, I would like it to return no value in the other cell. I do not want the "if false" value to populate.
This comment was minimized by the moderator on the site
i want a cell to automatically choose a number based on the drop-down option in the cell before, e.g drop-down, half meal, full meal, if I select half meal drop-down, the next cell should show 50% while the full meal drop-down will reflect 100%. please help
This comment was minimized by the moderator on the site
Hi Josh,
In the cell where you want to output the percentage, enter the following formula and press the Enter key. Hope I can help.
=IF(C15="half meal", "50%", IF(C15="full meal", "100%", ""))
This comment was minimized by the moderator on the site
Is it possible to return a certain value in 1 column based on another?


What I currently have: On a differnt tab (same worksheet):
Column A Column B
Location Name Dept Location Name Location Code
Miami 4455 Miami 123


What I want to happen:
Location Name Dept
Miami 11234455

In Coumn B, I want it to first add a 1, then take what is in Column A, see what is the Location Code on then different tab, insert that location code, and add that to the front of the current data in Column B.

1 + 123 + 4455
This comment was minimized by the moderator on the site
Hi Jen Rader,
You can apply the following formula to get it done.
=IFERROR(1&VLOOKUP(A9,Sheet2!$A$2:$B$5,2, 0)&VLOOKUP(Sheet1!A9,Sheet1!$A$2:$B$5,2, 0),"")
In this formula,
1. A9 is the cell contains the value you want to return values based on;
2. Sheet2 is the tab name contains the "Location Code"; If the tab name contains space, please enclose the tab name in single quotes, such as 'tab name'.
3. Sheet1 is the tab name contains the "Dept";
4. $A$2:$B$5 is the range containing the table data (include both search values and return values ).
See screenshots below:
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return1.png
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return2.png
This comment was minimized by the moderator on the site
OMG Crystal! You are amazing! Show me your ways! Thank you so much - it worked exactly like I was hoping!
This comment was minimized by the moderator on the site
I am trying to find out the formula to copy the number shown in B2 on cell D2 if the Cell C2 has a letter "S". Can anyone help me?
This comment was minimized by the moderator on the site
Hi Aurora,
Please enter the following formula in cell D2.
=IF(ISNUMBER(SEARCH("S",C2)),B2,"No qualify")
This comment was minimized by the moderator on the site
Bonjour à tous, j'ai un tableau Excel et j'aimerais réaliser via une macro l'opération suivante: si une cellule contient une date, me renvoyer une valeur dans une autre cellule. Pourriez vous m'aider s'il vous plait? Je vous remercie par avance
This comment was minimized by the moderator on the site
STALLS D 25 Palais - Stalls SR
STALLS M 19 Palais - Stalls SR
LOUNGE E 22 Palais - Lounge SR
LOUNGE G 23 Palais - Lounge SL
ORCH K 40 Palais - Orchestra SR
For each line in a spreadsheet I need to evaluate against a table like above and find the value that matches all of the first 3 values.
Normally I would use sumifs for this type of problem but the answer is a text string so it returns 0
This comment was minimized by the moderator on the site
I need a formula that makes column N equal the text “OTO” if column K equals MCS TRAINING how do I do that???
This comment was minimized by the moderator on the site
Hi Abby,Please apply the following formula in the cells of column N:=IF(ISNUMBER(MATCH("MCS TRAINING",K1)),"OTO","NULL")
This comment was minimized by the moderator on the site
Hi - This is my formula that I am working with.  Currently it works, but where B21 is being returned, the value of B21 is a link to another place altogether.  I want to keep the display text but would like to include the link as well.  Can this be done?  =IF(ISNUMBER(SEARCH("DATA_MAPPING",general_report!AJ21)),general_report!B21,"")
This comment was minimized by the moderator on the site
Is it possible to split the return value to a different tab? IE: columns B and C are located on one tab, and values in columns E and F are located on a different tab?
This comment was minimized by the moderator on the site
Hi

Is it possible to populate another cell, not the cell with the formula.

Example
A1 Yes
A2 3
A3 Formula searches A1, Grabs value at A2 and if Yes Paste it in A4
A4 3 
This comment was minimized by the moderator on the site
Hi,
Sorry can't help you with the problem. I suggest you post the problem to the forum below to get help from other Excel enthusiasts.
https://www.extendoffice.com/forum/kutools-for-excel.html 
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations