Fomula help

Nataliesg2

New Member
Joined
Mar 1, 2023
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
I am trying to find a formula that would work out if p1 is blank but l1 says "sent" it counts it but when p1 says 'yes' it shouldn't count it in the list.

Not sure if I'm making any sense! Any help would be appreciated.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the Board!

Your question is a bit incomplete. Count it where? It what list?
Maybe it would be helpful in your description to show us a sample of your data and expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Welcome to the Board!

Your question is a bit incomplete. Count it where? It what list?
Maybe it would be helpful in your description to show us a sample of your data and expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Hiya,
Sorry I cannot download the XL2BB as I'm at work and cannot download things so I have put a screen shot instead.

So.... I am trying to get an automatic count of people awaiting appointments, so if the merged cells (JKL) say 'Sent to MAS' and cell Q does not have a date in it I would like there to be the amount of numbers in the blue list of 'referrals sent awaiting appt' rather than me counting the 100's of people I sent last year. I'm not even sure there is a formula for this but it is worth asking.

Thanks
 

Attachments

  • excell.png
    excell.png
    116.6 KB · Views: 3
Upvote 0
So, are you trying to count records where the entry in you J-K-L column starts with "Sent...", but column P does NOT say "Yes"?
Is that correct?

Also, I HIGHLY advise you NOT to use merged cells, EVER!
They are probably the single worst feature of Excel and cause all sorts of issues, for things like Sorting, Filters, VBA, etc.

When trying to center across multiple columns in a single row, it is much better to use the Center Across Selection formatting option.
This will give you the exact same visual effect as merged cells across rows, but without all the issues that merged cells cause.
See: Tom’s Tutorials For Excel: Using Center Across Selection Instead of Merging Cells – Tom Urtis
 
Upvote 0
So, are you trying to count records where the entry in you J-K-L column starts with "Sent...", but column P does NOT say "Yes"?
Is that correct?

Also, I HIGHLY advise you NOT to use merged cells, EVER!
They are probably the single worst feature of Excel and cause all sorts of issues, for things like Sorting, Filters, VBA, etc.

When trying to center across multiple columns in a single row, it is much better to use the Center Across Selection formatting option.
This will give you the exact same visual effect as merged cells across rows, but without all the issues that merged cells cause.
See: Tom’s Tutorials For Excel: Using Center Across Selection Instead of Merging Cells – Tom Urtis
Sorry I've confused things and couldn't edit my question once I posted. Ignore cell p I want to count cell J-K-L column if it states "Sent..." but column Q does not have a date in it.
 
Upvote 0
Sorry I've confused things and couldn't edit my question once I posted. Ignore cell p I want to count cell J-K-L column if it states "Sent..." but column Q does not have a date in it.
If you fixed your merged cells to use the Center Across Selection formatting option like I advised, so your entry is actually in column J, then this formula should get what you want:
Excel Formula:
=SUMPRODUCT(--(LEFT(J2:J22,4)="Sent"),--(Q2:Q22=""))
 
Upvote 0
Sorry I've confused things and couldn't edit my question once I posted. Ignore cell p I want to count cell J-K-L column if it states "Sent..." but column Q does not have a date in it.
Did you get a solution to your problem yet?
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,231
Members
448,951
Latest member
jennlynn

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