Adding further criteria

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
172
Office Version
  1. 2021
Platform
  1. Windows
Hi, I have this formula which works fine

=IF(Results!$O$1="MIDDLE-4-DIDDLE",'Team & Singles'!U9,'Team & Singles'!U10)

However I would like to add a further criteria to say but only if Cell AB2 has data, if it doesn't then "" to be returned.

I'm not sure if it should be an IFS or an IFS & AND or maybe another alternative.

Many thanks.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
=IF(AB2="", "" , IF(Results!$O$1="MIDDLE-4-DIDDLE",'Team & Singles'!U9,'Team & Singles'!U10))

add whatever sheet AB2 is in , if required
 
Upvote 0
Solution
Thank you. I can see how that works but it wont because although AB2 displays as blank, it does have formula in it. At least I think that's the reason.
 
Upvote 0
if the formula is returning a "" then it should work

in B2 is a formula which returns a blank if A2 is blank
and then in D2 is a formula to Test B2, which has a formula in if its blank

Book3
ABCD
1
2 cell is Blank
Sheet1
Cell Formulas
RangeFormula
B2B2=IF(A2="","","fred")
D2D2=IF(B2="","cell is Blank",1)
 
Upvote 0
I've worked out how to resolve that, however it has caused me a further problem as because the ZERO no longer shows it corrupts other formula connected to it. I'm going to have to have a rethink. I'm just trying to avoid a table displaying rows of zeros. Many thanks for taking the time.
 
Upvote 0
where did the zeros come from ?

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
I've resolved it thanks by using the source cell for AB2. Working fine now. Cheers.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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