Hi
if B1 =100 ( this number is not fixed)
A1=B1
How to wite a formula: =Countif(A1:A(value from B1) instea a specified row the value from B1
i tried '=COUNTIF(A1:A INDIRECT(A1,TRUE),3)' but it does not work
is it possible?
Hi
if B1 =100 ( this number is not fixed)
A1=B1
How to wite a formula: =Countif(A1:A(value from B1) instea a specified row the value from B1
i tried '=COUNTIF(A1:A INDIRECT(A1,TRUE),3)' but it does not work
is it possible?
If your data layout is good (no potentially interfering stuff below your desired range), why not simply use:
=COUNTIF(A:A,3)
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
You would use the INDIRECT() function to return the entire reference (using Excel's text manipulation functions as needed to build the text string), not a part of the reference. Something like INDIRECT("A1:A"&A1)
Originally Posted by shg
But... if that's what you really want to do...
=SUMIF(INDIRECT("A1:A"&B1),3)
Hi
if B1 =100 ( this number is not fixed)
D1=B1
How to wite a formula: =Countif(A1:A(value from B1) instea a specified row the value from B1
I tried '=COUNTIF(A1:A INDIRECT(D1,TRUE),3)' but it does not work
I cannot use =countif(A:A,3) becose i star counting from A25 for example
but the formula you indiocate is good
Thank you
Last edited by pedersenn; 08-25-2017 at 01:22 PM.
Please look at Post 4. If that is NOT what you want, then...
Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).
1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.
2. Make sure that your desired solution is also shown (mock up the results manually).
3. Make sure that all confidential information is removed first!!
4. Try to avoid using merged cells. They cause lots of problems!
Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
Oh.. and when you are replying here - say WHO YOU ARE REPLYING to!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks