"AND" query

avinashraste

Board Regular
Joined
Mar 12, 2008
Messages
167
Dear friends,

I have a formula, working fine but I don't know how to extend the query...!!! The query is in cell N8 :

If L8 = "Buy"
(M8-P8)+M8
Else
M8-(ABS(P8-M8))

This works fine. But I want to extend it with the addition to the first formula : If K8 = "", N8 = ""


Please guide & help

Thanks in advance

AR
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
What do you mean by extend? Do you want to make sure that L8="Buy" and both K8 and N8 are "", or do you mean something else?
 
Upvote 0
What do you mean by extend? Do you want to make sure that L8="Buy" and both K8 and N8 are "", or do you mean something else?

Dear philwojo

The problem is solved. The solution suggested by jproffer worked perfectly fine.
But many thanks to you also for replying the post.

Regards,
AR
 
Upvote 0
Dear jproffer,

Thanks a million. You have solved my problem. Fantastic & perfect solution.

Thank you once again for all your time & help.

Regards
AR

I'm not saying this isn't working for you, but I don't see this testing for N8 at all, as long as you are OK with that and it works for you great, but just wanted to point that out as you indicated in your original post (OP) that you wanted to test if N8="" as well.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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