username_rand

New Member
Joined
Jan 27, 2019
Messages
20
Hi there,

I'm trying to use the value (text) returned from an If Statement in Cell (C4) as a condition in another cell (D4) but it does not seem to be working since the actual cell value is not the text rather the equation itself, is there a way around this or any other way to get it done?

=IF(AND(B4="No",C4="Is there a preferred source?"),"Multiple Quotations", " ")

Bold text is the result of the below If Statement in C4:
=IF(B3="No","Is there a preferred source?"," ")

Thank you
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
There's nothing wrong with your formula & it should work.
In what way doesn't it work?

Also you could possibly simplify the formula in D4 to
=IF(C4="Is there a preferred source?","Multiple Quotations", " ")
 
Upvote 0
There's nothing wrong with your formula & it should work.
In what way doesn't it work?
it does not return the value "Multiple Quotations", it returns blank.

This is for a questionnaire i'm establishing using excel so i have to let all questions appear and most formulas would depend on similar cells but with different potential answers, if that makes sense to you.
 
Upvote 0
Hi,

I can't reproduce your results.

Cell Formulas
RangeFormula
C4=IF(B3="No","Is there a preferred source?"," ")
D4=IF(AND(B4="No",C4="Is there a preferred source?"),"Multiple Quotations", " ")


Could you share a mockup of how your sheet looks.
Will give us more info to go on.
 
Upvote 0
Is the formula in C4 meant to look at B3 or B4?
If B3, should D4 also be looking at B3 rather than B4?
 
Upvote 0
1BCDE
2What would you like to request?Service

3Is this the first request of the sort?No

4Is there a preferred source?NoMultiple Quotations
5

<tbody>
</tbody>









B4=IF(C3="No","Is there a preferred source?", "Do you have knowledge of the number of potential suppliers?")
D4=IF(ÖR(AND(C4="No",B4="Is there a preferred source?"), AND(C4="No", B4=" Do you have knowledge of the number of potential suppliers?")) , "Multiple Quotations", " ")

<tbody>
</tbody>






Apologies if i wasn't clear earlier, hope this gives you a better picture of what i'm trying to do. the formula in D4 keeps returning blank even if conditions are met.
 
Upvote 0
Hi,

Can you check if you are posting formula's with typo's within.
I still can't recreate your error:


Book1
BCD
2What would you like to request?Service
3Is this the first request of the sort?No
4Is there a preferred source?NoMultiple Quotations
5
Sheet3
Cell Formulas
RangeFormula
B4=IF(C3="No","Is there a preferred source?", "Do you have knowledge of the number of potential suppliers?")
D4=IF(OR(AND(C4="No",B4="Is there a preferred source?"), AND(C4="No", B4=" Do you have knowledge of the number of potential suppliers?")), "Multiple Quotations", " ")
 
Last edited:
Upvote 0
You have an space before " Do you..." in the formula that shouldn't be there.
You could also simplify the formula like
=IF(C4="no",IF(OR(B4="Is there a preferred source?",B4="Do you have knowledge of the number of potential suppliers?"), "Multiple Quotations", ""),"")
 
Upvote 0
You have an space before " Do you..." in the formula that shouldn't be there.
You could also simplify the formula like
=IF(C4="no",IF(OR(B4="Is there a preferred source?",B4="Do you have knowledge of the number of potential suppliers?"), "Multiple Quotations", ""),"")

It's not there on my excel worksheet but i will double check now.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top