I need help writing an OFFSET formula that will 1) return the array of numbers below including the blanks in the correct order and 2) be dynamic such that if I add the number 11 either in the cell directly below the 10 OR below the 10 but with blank cells between will continue to pull the full array including blanks up until the 11. I know how to do this if there are no blanks, but the blanks present an issue because I can't combine the usual OFFSET with COUNTA functions.

Post Photo
like
Posting as :
works at
You are currently posting as works at

If the numbers are always sorted in column A you could use MATCH(MAX(A:A), A:A, 0) to get the height of your array for offset

like

In that case, you could try this:
=OFFSET(A1, 0, 0, MAX(IF(A:A<>"", ROW(A:A))))

Note that it will replace blank cells with a 0. If 0 is not a valid value in your list to begin with, you could easily replace those with a "".

Try to avoid using OFFSET() if possible, as it’s a volatile formula. If you have office365, the solution in the screenshot uses DROP() , TAKE(), and XMATCH() to trim the array to only what you want returned.

Post Photo
like

Great solution, love the use of XMATCH here and it’s nice to see others adopting LET and line breaks to make formulas easier to read!

like

Related Posts

Any recommendations for residential areas/ accommodations close to EY london office? Hate to commute🫠 starting soon!

likehelpful

Has anyone successfully moved out of claims into underwriting? I have been doing worker’s compensation claims for about 9 years now as an adjuster. I would really like to get into underwriting but have not had any success so far. What are some other roles I can transition to?

likehelpful

Hi. I have a Panel Interview with a Salesforce product company. I need to do a presentation to the customer on the Product and how it will solve their problems. I need to do an elevator pitch for 3 slides about the company and then address the customer problems with the features of the product. Can you please share some Tips on these ( Elevator Pitch about the company and suggestions for the Panel interview) ? Thanks.

like

How much should I invest in buying a HOME as my primary residence.

Current TC: 200k
Net worth: 300k, readily available 170k in stocks, hysa and cash
Current rent: 2000 per month
Age: 30

Wonder if anyone has any excel model or a rule to determine how much I can afford or should go for?

like

What’s your target retirement number and at what age do you plan to retire?
Of course I know it depends on a wide range of factors, but I’m curious to get a sample from this group.
Mine is $5M at 55.

like

24 F, Arab living in Ohio. Hijabi, don’t drink, don’t smoke. Interested in Arab men. Willing to relocate in the US or to the gulf countries.

like

What would you folks say is the best and most achievable route to take for true Program Manager (minimal tech exp) with Sec+, picking up CISSP, and wanting to get more into the technology? Thoughts?

Hey Guys, Currently I am having 16.12 lac pa in current organization and 5% Bonus So total comes around 16.93lac pa. Nagarro is asking me to rejoin at 20 lac pa (5% Project bonus included).
When I left Nagarro around 2 years back my fixed there was 11.50. Shall I consider this offer of Nagarro. Reason I want to change the job is because I don't have code based automation in my current organization and I have been an SDET in my whole experience.

like

Are there any onsite opportunities in nagarro

like

I got 2 times in Nagarro cheerboard. For Sep and Nov month.

Will this be beneficial in appraisal?
BTW 2 Cheerboard ka bas 1000 rs mila
😭😭

like

Anyone got the skinny on Alix consulting?

Got pinged by a recruiter for an MD role in digital transformation

He claims they compete with MBB and Alvarez.

Thoughts?

like

For people who recently refinanced, bought or is in the process of buying a new home, what APR did you get?

like

Can we take leaves while serving NP?

like

Two personal favorites from 2020. What's your 2020 favorites?

Post Photo

For people who post links to news first - how do you do it? I send stuff to people and they're like oh saw that, and it was two hours ago...

likefunny

Literally all of my LinkedIn connections are recruiters lmao

likefunny

Hi everyone! Does anyone have suggestions on a good standing desk or ergonomic chair?

like

Any trans in this bowl from India ?

like

Gave AUD on Wednesday and my exam was VERY hard. 4 sims with exhibit were very lengthy and complicated and one sim I had no idea what it was asking(never seen it before). Very nervous for the result as this was my 2nd try. 😭

like

Additional Posts in Excel Genius

Can dates be grouped just by Month-Year in pivot tables on a Mac without having the year as its own dimension?

Post Photo
like

Is there a way for me to automate creating columns to do this so I can drag across and create my columns? For example--
1Q2021 2Q2021 3Q2021 4Q2021 2021 1Q2022?

likesmart

Does anyone from PwC have a list of the favorite groups shortcuts for excel? Please provide. Much appreciated .

like

Hey guys, I'm trying to find a formula to use instead of the Goal Seek function. Anyone know it? I thought I had seen one years ago, but can't find it now.

like

How can I copy a formula from one sheet to another?i tried the simple Ctrl+C, Ctrl-V, but the formula refers to the old sheet.

like

What are your top excel functions you use in finance / accounting - besides vlookup - Pivots - sumifs - count - index. I have an interview coming up which will have excel based technical questions. Not sure what other functions are considered important in the accounting finance world.

like

How do you fix microsoft excel cannot paste data error?

like

Does anyone have any tips/tricks for knowing where to plug +1/-1 in a large table with totals across the y and x axis that contain un-rounded numbers? Every time I fix a row I throw off a column or my check figures to the true data source.

Post Photo
like

Would anyone be willing to teach me vlookup?

like

Anyone know what these badges are?

Post Photo
likefunny

For a linear regression analysis… the equation of a line is Y=MX+B, where M is the slope. So if I’m measuring a line across 365 days and M=.2, can I say that I have increased production by 20% over a year. Or is production increasing 20% each day?

like

Is there an easy way to switch XLOOKUPS to INDEX MATCH? Have a large file with bunch of formulas that don't work on all client machines (different excel versions).

like

Is there a way to identify duplicate URLs within labeled hyperlinks on multiple columns/rows/cells?

I was thinking conditional format, but it’s identifying duplicate labels. I have over 80,000 cells, so extracting URLs manually isn’t going to work for me.

Thanks in Advance!

EY trying to move away from Excel . Think it’s possible? Want to see it happen?

like

Client sent over a 90 MB model this evening. Took 10 minutes to open and a fraction of that to crash. Can’t wait for tomorrow 😭

like

What are your top Excel ninja tricks? Ones that few people know...

like

Best way to lookup a value with multiple criteria across rows and Columns, for 3 criteria I usually do sum product. Any other tips?

like

Current IE here. What are some Time Motion Study Softwares that are out there and you use in your jobs?

like

Any book recommendations on excel modeling for real world business applications?

like

Does anyone know what purple tables mean in Excel?

I know about green and orange, but never saw purple before and trying to figure it out.

likefunny

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal